Closed
Description
There seems to be a critical bug in 2.2.0 with the introduction of SCSS support. When trying to import a file with:
@import '~@design';
I see the repeated error:
File to import not found or unreadable: src/components/~@design.
Parent style sheet: stdin
at Object.module.exports.renderSync (node_modules/node-sass/lib/index.js:439:16)
at module.exports (node_modules/vue-jest/lib/compilers/scss-compiler.js:28:15)
at processStyleByLang (node_modules/vue-jest/lib/process-style.js:6:82)
at processStyle (node_modules/vue-jest/lib/process-style.js:15:17)
at parts.styles.map.ast (node_modules/vue-jest/lib/process.js:98:11)
at Array.map (<anonymous>)
at Object.module.exports [as process] (node_modules/vue-jest/lib/process.js:93:35)
This causes every test to fail, even ones that don't have anything to do with Vue or SCSS - and even when those tests are run in isolation, oddly. Unfortunately, matching neither @design
nor ~@design
in moduleNameMapper
has seemed to have any effect.
As a side note, seeing as there still seem to be quite a few other issues with CSS support in general, I wonder if trying to compile styles should be an opt-in experimental feature for now.
Metadata
Metadata
Assignees
Labels
No labels