Skip to content

Commit 85296dd

Browse files
committed
chore: up jest major
1 parent a0c0271 commit 85296dd

File tree

8 files changed

+1148
-981
lines changed

8 files changed

+1148
-981
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
"chalk": "^4.1.2",
2828
"enquirer": "^2.3.6",
2929
"execa": "^6.1.0",
30-
"globby": "^13.1.2",
31-
"lint-staged": "^13.0.4",
30+
"globby": "^13.1.3",
31+
"lint-staged": "^13.1.0",
3232
"minimist": "^1.2.7",
3333
"p-series": "^3.0.0",
34-
"prettier": "^2.8.0",
34+
"prettier": "^2.8.3",
3535
"semver": "^7.3.8",
36-
"typescript": "~4.9.3",
36+
"typescript": "~4.9.4",
3737
"yorkie": "^2.0.0"
3838
},
3939
"gitHooks": {

packages/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"vitepress": "^0.20.0"
1313
},
1414
"devDependencies": {
15-
"@algolia/client-search": "^4.14.2",
15+
"@algolia/client-search": "^4.14.3",
1616
"typedoc": "^0.23.21",
1717
"typedoc-plugin-markdown": "^3.13.6"
1818
}

packages/playground/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"vue": "^3.2.45"
1313
},
1414
"devDependencies": {
15-
"@types/node": "^18.11.9",
15+
"@types/node": "^18.11.18",
1616
"@vitejs/plugin-vue": "^3.2.0",
1717
"@vue/compiler-sfc": "^3.2.45",
1818
"@vue/tsconfig": "^0.1.3",
19-
"typescript": "~4.9.3",
20-
"vite": "^3.2.4",
19+
"typescript": "~4.9.4",
20+
"vite": "^3.2.5",
2121
"vue-router": "workspace:*",
22-
"vue-tsc": "^1.0.9"
22+
"vue-tsc": "^1.0.24"
2323
}
2424
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`RouterLink v-slot provides information on v-slot 1`] = `"<a aria-current=\\"page\\" href=\\"/home\\" class=\\"router-link-active router-link-exact-active\\"><span> route: {\\"href\\":\\"/home\\",\\"fullPath\\":\\"/home\\",\\"path\\":\\"/home\\",\\"params\\":{},\\"meta\\":{},\\"query\\":{},\\"hash\\":\\"\\",\\"matched\\":[{}],\\"name\\":\\"home\\"} href: \\"/home\\" isActive: \\"true\\" isExactActive: \\"true\\" </span></a>"`;
3+
exports[`RouterLink v-slot provides information on v-slot 1`] = `"<a aria-current="page" href="/home" class="router-link-active router-link-exact-active"><span> route: {"href":"/home","fullPath":"/home","path":"/home","params":{},"meta":{},"query":{},"hash":"","matched":[{}],"name":"home"} href: "/home" isActive: "true" isExactActive: "true" </span></a>"`;

packages/router/__tests__/setup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { TextEncoder, TextDecoder } from 'util'
2+
3+
global.TextEncoder = TextEncoder
4+
// @ts-expect-error: ok
5+
global.TextDecoder = TextDecoder

packages/router/jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
module.exports = {
22
testEnvironment: 'node',
3+
testEnvironmentOptions: {
4+
customExportConditions: ['node', 'node-addons'],
5+
},
36
globals: {
47
__DEV__: true,
58
__TEST__: true,
69
__BROWSER__: true,
710
},
11+
setupFilesAfterEnv: ['<rootDir>/__tests__/setup.ts'],
812
coverageDirectory: 'coverage',
913
coverageReporters: ['html', 'lcov', 'text'],
1014
collectCoverageFrom: ['src/**/*.ts'],

packages/router/package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,40 +75,42 @@
7575
"attributes": "vetur/attributes.json"
7676
},
7777
"dependencies": {
78-
"@vue/devtools-api": "^6.4.5"
78+
"@vue/devtools-api": "^6.5.0"
7979
},
8080
"devDependencies": {
8181
"@microsoft/api-extractor": "^7.33.6",
8282
"@rollup/plugin-alias": "^3.1.4",
8383
"@rollup/plugin-commonjs": "^22.0.2",
8484
"@rollup/plugin-node-resolve": "^13.0.5",
8585
"@rollup/plugin-replace": "^4.0.0",
86-
"@sucrase/jest-plugin": "^2.1.1",
87-
"@types/jest": "^27.4.1",
88-
"@types/jsdom": "^16.2.15",
89-
"@types/nightwatch": "^2.3.14",
86+
"@sucrase/jest-plugin": "^3.0.0",
87+
"@types/jest": "^29.4.0",
88+
"@types/jsdom": "^20.0.1",
89+
"@types/nightwatch": "^2.3.18",
9090
"@vitejs/plugin-vue": "^3.2.0",
9191
"@vue/compiler-sfc": "^3.2.45",
9292
"@vue/server-renderer": "^3.2.45",
93-
"@vue/test-utils": "^2.2.4",
93+
"@vue/test-utils": "^2.2.7",
9494
"browserstack-local": "^1.4.5",
95-
"chromedriver": "^106.0.1",
95+
"chromedriver": "^109.0.0",
9696
"connect-history-api-fallback": "^1.6.0",
9797
"conventional-changelog-cli": "^2.1.1",
9898
"dotenv": "^16.0.3",
9999
"faked-promise": "^2.2.2",
100100
"geckodriver": "^3.2.0",
101-
"jest": "^27.5.1",
101+
"jest": "^29.4.0",
102+
"jest-environment-jsdom": "^29.4.0",
102103
"jest-mock-warn": "^1.1.0",
103-
"nightwatch": "^2.5.2",
104+
"nightwatch": "^2.6.10",
104105
"nightwatch-helpers": "^1.2.0",
105106
"rimraf": "^3.0.2",
106107
"rollup": "^2.79.1",
107108
"rollup-plugin-analyzer": "^4.0.0",
108109
"rollup-plugin-terser": "^7.0.2",
109110
"rollup-plugin-typescript2": "^0.34.1",
110-
"typescript": "~4.9.3",
111-
"vite": "^3.2.4",
111+
"sucrase": "^3.29.0",
112+
"typescript": "~4.9.4",
113+
"vite": "^3.2.5",
112114
"vue": "^3.2.45"
113115
}
114116
}

0 commit comments

Comments
 (0)