Skip to content

Commit

Permalink
fix(jest): downgrate vue-jest to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed May 18, 2020
1 parent 23b2d5f commit 8a75b51
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
Expand Up @@ -4,5 +4,5 @@ import Logo from '@/components/Logo.vue'

test('is a Vue instance', (t) => {
const wrapper = mount(Logo)
t.is(wrapper.isVueInstance(), true)
t.is(wrapper.vm, true)
})
3 changes: 2 additions & 1 deletion packages/cna-template/template/frameworks/jest/package.json
Expand Up @@ -4,9 +4,10 @@
},
"devDependencies": {
"@vue/test-utils": "^1.0.0-beta.33",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^25.5.1",
"jest": "^25.5.2",
"ts-jest": "^25.4.0",
"vue-jest": "^4.0.0-beta.2"
"vue-jest": "^3.0.4"
}
}
Expand Up @@ -4,6 +4,6 @@ import Logo from '@/components/Logo.vue'
describe('Logo', () => {
test('is a Vue instance', () => {
const wrapper = mount(Logo)
expect(wrapper.isVueInstance()).toBeTruthy()
expect(wrapper.vm).toBeTruthy()
})
})
3 changes: 2 additions & 1 deletion packages/create-nuxt-app/test/snapshots/index.test.js.md
Expand Up @@ -2222,9 +2222,10 @@ Generated by [AVA](https://avajs.dev).
},
devDependencies: {
'@vue/test-utils': '^1.0.0-beta.33',
'babel-core': '7.0.0-bridge.0',
'babel-jest': '^25.5.1',
jest: '^25.5.2',
'vue-jest': '^4.0.0-beta.2',
'vue-jest': '^3.0.4',
},
private: true,
scripts: {
Expand Down
Binary file modified packages/create-nuxt-app/test/snapshots/index.test.js.snap
Binary file not shown.
3 changes: 3 additions & 0 deletions renovate.json
Expand Up @@ -5,6 +5,9 @@
"lockFileMaintenance": {
"enabled": true
},
"ignoreDeps": [
"vue-jest"
],
"packageRules": [
{
"packagePatterns": ["nuxt"],
Expand Down

0 comments on commit 8a75b51

Please sign in to comment.