Skip to content

Commit d712d22

Browse files
committed
fix(jest.config): babel-jest can't process import statement
1 parent 8fee20b commit d712d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
transform: {
99
'^.+\\.vue$': 'vue-jest',
1010
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
11-
'^.+\\.jsx?$': 'babel-jest'
11+
'^.+\\.jsx?$': '<rootDir>/node_modules/babel-jest'
1212
},
1313
moduleNameMapper: {
1414
'^@/(.*)$': '<rootDir>/src/$1'

0 commit comments

Comments
 (0)