File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ module.exports.info = function info (msg) {
5
5
module . exports . warn = function info ( msg ) {
6
6
console . warn ( '\n[vue-jest]: ' + ( msg ) + '\n' )
7
7
}
8
+
9
+ module . exports . shouldLogStyleWarn = true
Original file line number Diff line number Diff line change @@ -101,8 +101,9 @@ module.exports = function (src, filePath) {
101
101
}
102
102
103
103
if ( Array . isArray ( parts . styles ) && parts . styles . length > 0 ) {
104
- if ( parts . styles . some ( ast => / ^ s c s s | s a s s | l e s s | p c s s | p o s t c s s / . test ( ast . lang ) ) ) {
104
+ if ( ( parts . styles . some ( ast => / ^ s c s s | s a s s | l e s s | p c s s | p o s t c s s / . test ( ast . lang ) ) ) && logger . shouldLogStyleWarn ) {
105
105
logger . warn ( 'Sass/SCSS, Less and PostCSS are not currently compiled by vue-jest' )
106
+ logger . shouldLogStyleWarn = false
106
107
}
107
108
108
109
const styleStr = parts . styles . map ( ast => {
You can’t perform that action at this time.
0 commit comments