File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 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) {
55module . exports . warn = function info ( msg ) {
66 console . warn ( '\n[vue-jest]: ' + ( msg ) + '\n' )
77}
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) {
101101 }
102102
103103 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 ) {
105105 logger . warn ( 'Sass/SCSS, Less and PostCSS are not currently compiled by vue-jest' )
106+ logger . shouldLogStyleWarn = false
106107 }
107108
108109 const styleStr = parts . styles . map ( ast => {
You can’t perform that action at this time.
0 commit comments