-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Labels
Description
I met some strange errors, when upgraded from v1.4.0 to v2.0.0.
It occurs errors about parsing css, looks like this:
FAIL test/App.spec.js
● Test suite failed to run
undefined:62:6: property missing ':'
at error (node_modules/css/lib/parse/index.js:62:15)
at declaration (node_modules/css/lib/parse/index.js:223:33)
at declarations (node_modules/css/lib/parse/index.js:252:19)
at rule (node_modules/css/lib/parse/index.js:560:21)
at rules (node_modules/css/lib/parse/index.js:117:70)
at stylesheet (node_modules/css/lib/parse/index.js:81:21)
at Object.module.exports [as parse] (node_modules/css/lib/parse/index.js:564:20)
at Function.extractClasses (node_modules/extract-from-css/lib/index.js:14:23)
at processStyle (node_modules/vue-jest/lib/process.js:40:31)
at parts.styles.map.ast (node_modules/vue-jest/lib/process.js:105:24)
Here is a part of App.vue:
62: ul {
63: @include clearfix;
64: }I use sass-resources-loader to set global mixin for SCSS at webpack.config.js.
I think it caused by not loading the mixin in Jest, but README.md told me 'It does not currently compile the style section'.
This makes me confused.
Incidentally, this error did not occur with v1.4.0.
Is there any good solution?
eddyerburgh, adamwoodbury, kkempster94, ffxsam, andy265 and 2 more