File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 17
17
main :
18
18
strategy :
19
19
matrix :
20
- node : [12, 14, 16]
20
+ node : [14, 16]
21
21
runs-on : ubuntu-latest
22
22
steps :
23
23
- name : ⬇️ Checkout repo
Original file line number Diff line number Diff line change 15
15
"setup" : " npm install && npm run validate -s"
16
16
},
17
17
"engines" : {
18
- "node" : " >10.18 "
18
+ "node" : " >=14 "
19
19
},
20
20
"files" : [
21
21
" types/*.d.ts" ,
44
44
"license" : " MIT" ,
45
45
"dependencies" : {
46
46
"@babel/runtime" : " ^7.12.5" ,
47
- "@testing-library/dom" : " ^7.26.6 " ,
48
- "@vue/test-utils" : " ^1.1 .0"
47
+ "@testing-library/dom" : " ^9.0.0 " ,
48
+ "@vue/test-utils" : " ^1.3 .0"
49
49
},
50
50
"devDependencies" : {
51
51
"@babel/plugin-transform-runtime" : " ^7.11.5" ,
Original file line number Diff line number Diff line change 1
1
import '@testing-library/jest-dom'
2
2
import { render } from '@testing-library/vue'
3
- import semver from 'semver'
4
3
5
4
import About from './components/Router/About.vue'
6
5
@@ -12,10 +11,6 @@ test('uses require("vue-router").default when require("vue-router") is undefined
12
11
} )
13
12
14
13
expect ( ( ) => render ( About , { routes} ) ) . toThrowError (
15
- new TypeError (
16
- semver . gte ( process . version , '16.0.0' )
17
- ? "Cannot read properties of undefined (reading 'default')"
18
- : "Cannot read property 'default' of undefined" ,
19
- ) ,
14
+ new TypeError ( "Cannot read property 'default' of undefined" ) ,
20
15
)
21
16
} )
You can’t perform that action at this time.
0 commit comments