Skip to content

Commit

Permalink
fix: hidde scss error warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyerburgh committed Apr 10, 2018
1 parent aa94fef commit 8f1ff0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/compilers/scss-compiler.js
Expand Up @@ -32,7 +32,8 @@ module.exports = (content, filePath, config) => {
outputStyle: 'compressed'
}).css.toString()
} catch (err) {
logger.warn(`There was an error rendering the SCSS in ${filePath}. SCSS is not fully supported by vue-jest, so some features will throw errors. Webpack aliases are a common cause of errors.`)
config.hideStyleWarn &&
logger.warn(`There was an error rendering the SCSS in ${filePath}. SCSS is not fully supported by vue-jest, so some features will throw errors. Webpack aliases are a common cause of errors.`)
}
return result || ''
}

0 comments on commit 8f1ff0b

Please sign in to comment.