Skip to content

Commit 9ff3de7

Browse files
AlexanderKaranTkDodoautofix-ci[bot]
authored
Upgrade to Vitest v4 (#9862)
* Init upgrade * Fixed query core * Fixed persist tests * Fixed coverage * Fixed React * Fixed Solid Query Devtools and Sold Query * Svelte query fix * Fixed Vue * Angular done * Fixed React * Merge files * Knip fix * Fixed order * Angular Eslint * Query Core Eslint * Fixed Vue Eslint issue * Removed fallback * chore: update lockfile * ci: apply automated fixes * fix: esbuild resolving * fix: no idea * chore: bump vitest * Pipeline Fix - Fallback UI is not reset between tests -> moved to create a function for each - ruleTests needs to be top level * ci: apply automated fixes * ref: bump vitejs/plugin-react * chore: stop testing against ancient ts 5.0 * Revert "chore: stop testing against ancient ts 5.0" This reverts commit c72b7e7. * Revert "ref: bump vitejs/plugin-react" This reverts commit b9622bc. --------- Co-authored-by: Dominik Dorfmeister <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 0525ad1 commit 9ff3de7

File tree

76 files changed

+1177
-1702
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1177
-1702
lines changed

eslint.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ export default [
5050
{
5151
files: ['**/*.spec.ts*', '**/*.test.ts*', '**/*.test-d.ts*'],
5252
plugins: { vitest },
53-
rules: vitest.configs.recommended.rules,
53+
rules: {
54+
...vitest.configs.recommended.rules,
55+
'vitest/no-standalone-expect': [
56+
'error',
57+
{
58+
additionalTestBlockFunctions: ['testIf'],
59+
},
60+
],
61+
},
5462
settings: { vitest: { typecheck: true } },
5563
},
5664
]

examples/react/algolia/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"@types/react-dom": "^18.2.25",
2121
"@vitejs/plugin-react": "^4.3.4",
2222
"typescript": "5.8.3",
23-
"vite": "^6.3.6"
23+
"vite": "^6.4.1"
2424
}
2525
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import './.next/types/routes.d.ts'
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/auto-refetching/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"moduleResolution": "Bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
14-
"jsx": "preserve",
14+
"jsx": "react-jsx",
1515
"incremental": true,
1616
"target": "ES2017"
1717
},

examples/react/basic-graphql-request/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
},
1818
"devDependencies": {
1919
"@vitejs/plugin-react": "^4.3.4",
20-
"vite": "^6.3.6"
20+
"vite": "^6.4.1"
2121
}
2222
}

examples/react/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@types/react-dom": "^18.2.25",
2323
"@vitejs/plugin-react": "^4.3.4",
2424
"typescript": "5.8.3",
25-
"vite": "^6.3.6"
25+
"vite": "^6.4.1"
2626
},
2727
"nx": {
2828
"targets": {

examples/react/chat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"@vitejs/plugin-react": "^4.3.4",
1919
"tailwindcss": "^4.0.14",
2020
"typescript": "5.8.3",
21-
"vite": "^6.3.6"
21+
"vite": "^6.4.1"
2222
}
2323
}

examples/react/default-query-function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"devDependencies": {
1717
"@vitejs/plugin-react": "^4.3.4",
1818
"typescript": "5.8.3",
19-
"vite": "^6.3.6"
19+
"vite": "^6.4.1"
2020
}
2121
}

examples/react/devtools-panel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"devDependencies": {
1717
"@vitejs/plugin-react": "^4.3.4",
1818
"typescript": "5.8.3",
19-
"vite": "^6.3.6"
19+
"vite": "^6.4.1"
2020
}
2121
}

examples/react/eslint-legacy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@types/react-dom": "^18.2.25",
2323
"@vitejs/plugin-react": "^4.3.4",
2424
"typescript": "5.8.3",
25-
"vite": "^6.3.6"
25+
"vite": "^6.4.1"
2626
},
2727
"nx": {
2828
"targets": {

0 commit comments

Comments
 (0)