Skip to content

Commit 34afe3a

Browse files
committed
test: up vitest
1 parent f4712ae commit 34afe3a

File tree

3 files changed

+124
-212
lines changed

3 files changed

+124
-212
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"@rollup/plugin-terser": "^0.4.4",
3636
"@types/lodash.kebabcase": "^4.1.9",
3737
"@types/node": "^20.14.12",
38-
"@vitest/coverage-v8": "^1.6.0",
39-
"@vitest/ui": "^1.6.0",
38+
"@vitest/coverage-v8": "^2.0.4",
39+
"@vitest/ui": "^2.0.4",
4040
"@vue/compiler-sfc": "^3.4.34",
4141
"@vue/server-renderer": "^3.4.34",
4242
"chalk": "^5.3.0",
@@ -59,7 +59,7 @@
5959
"typedoc": "^0.26.5",
6060
"typedoc-plugin-markdown": "^4.2.3",
6161
"typescript": "~5.5.4",
62-
"vitest": "^1.6.0",
62+
"vitest": "^2.0.4",
6363
"vue": "^3.4.34"
6464
},
6565
"simple-git-hooks": {

packages/pinia/__tests__/vitest-mock-warn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ declare module 'vitest' {
1515
}
1616

1717
export function mockWarn() {
18-
let warn: MockInstance<Parameters<(typeof console)['warn']>, void>
18+
let warn: MockInstance<(typeof console)['log']>
1919
const asserted = new Map<string, string | RegExp>()
2020

2121
expect.extend({

0 commit comments

Comments
 (0)