Skip to content

Commit 8f1ff0b

Browse files
committed
fix: hidde scss error warning
1 parent aa94fef commit 8f1ff0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/compilers/scss-compiler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ module.exports = (content, filePath, config) => {
3232
outputStyle: 'compressed'
3333
}).css.toString()
3434
} catch (err) {
35-
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.`)
35+
config.hideStyleWarn &&
36+
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.`)
3637
}
3738
return result || ''
3839
}

0 commit comments

Comments
 (0)