Skip to content

Commit d7c6af7

Browse files
committed
fix: force babel-core version when using ts + babel
1 parent 4680544 commit d7c6af7

File tree

1 file changed

+8
-0
lines changed
  • packages/@vue/cli-plugin-unit-jest/generator

1 file changed

+8
-0
lines changed

packages/@vue/cli-plugin-unit-jest/generator/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ module.exports = api => {
4949
'ts-jest': '^22.0.1'
5050
}
5151
})
52+
if (api.hasPlugin('babel')) {
53+
api.extendPackage({
54+
devDependencies: {
55+
// this is for now necessary to force ts-jest and vue-jest to use babel 7
56+
'babel-core': '^7.0.0-0'
57+
}
58+
})
59+
}
5260
}
5361

5462
api.extendPackage({ jest: jestConfig })

0 commit comments

Comments
 (0)