Skip to content

Commit 923ce82

Browse files
committed
fix: default to object for config
1 parent 185a4c4 commit 923ce82

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

lib/process.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ function changePartsIfFunctional (parts) {
4040
}
4141

4242
module.exports = function (src, filePath, jestConfig) {
43-
const config = jestConfig && jestConfig.globals
44-
? jestConfig.globals['vue-jest']
45-
: {}
43+
const config = (jestConfig && jestConfig.globals && jestConfig.globals['vue-jest']) || {}
4644

4745
var parts = vueCompiler.parseComponent(src, { pad: true })
4846

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@
7979
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
8080
".*\\.(vue)$": "<rootDir>/vue-jest.js"
8181
},
82-
"mapCoverage": true,
83-
"globals": {
84-
"vue-jest": {
85-
"experimentalStyles": true
86-
}
87-
}
82+
"mapCoverage": true
8883
},
8984
"repository": {
9085
"type": "git",

0 commit comments

Comments
 (0)