Skip to content

Commit

Permalink
fix: force babel-core version when using ts + babel
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 25, 2018
1 parent 4680544 commit d7c6af7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/@vue/cli-plugin-unit-jest/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ module.exports = api => {
'ts-jest': '^22.0.1'
}
})
if (api.hasPlugin('babel')) {
api.extendPackage({
devDependencies: {
// this is for now necessary to force ts-jest and vue-jest to use babel 7
'babel-core': '^7.0.0-0'
}
})
}
}

api.extendPackage({ jest: jestConfig })
Expand Down

0 comments on commit d7c6af7

Please sign in to comment.