Skip to content

Commit

Permalink
Update Vitest (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow authored Aug 2, 2024
1 parent 61861fc commit 7de583a
Show file tree
Hide file tree
Showing 11 changed files with 581 additions and 595 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"del-cli": "^5.1.0",
"prettier": "^3.3.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
"vitest": "^2.0.5"
}
}
8 changes: 4 additions & 4 deletions packages/openapi-fetch/examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"dependencies": {
"next": "14.2.3",
"openapi-fetch": "workspace:^",
"react": "18.3.1",
"react-dom": "18.3.1"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/react": "18.3.1",
"@types/react-dom": "18.3.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"openapi-typescript": "workspace:^",
"typescript": "5.4.5"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/openapi-fetch/examples/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "vite dev"
},
"dependencies": {
"@tanstack/react-query": "^5.45.1",
"@tanstack/react-query": "^5.51.18",
"openapi-fetch": "workspace:^",
"openapi-typescript": "workspace:^",
"react": "^18.3.1",
Expand All @@ -17,6 +17,6 @@
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"typescript": "^5.4.5",
"vite": "^5.3.1"
"vite": "^5.3.5"
}
}
14 changes: 7 additions & 7 deletions packages/openapi-fetch/examples/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"openapi-fetch": "workspace:^"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.8",
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@sveltejs/adapter-auto": "^3.2.2",
"@sveltejs/kit": "^2.5.19",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"openapi-typescript": "workspace:^",
"svelte": "^4.2.17",
"svelte-check": "^3.7.1",
"tslib": "^2.6.2",
"svelte": "^4.2.18",
"svelte-check": "^3.8.5",
"tslib": "^2.6.3",
"typescript": "^5.4.5",
"vite": "^5.3.1"
"vite": "^5.3.5"
}
}
8 changes: 4 additions & 4 deletions packages/openapi-fetch/examples/vue-3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
},
"dependencies": {
"openapi-fetch": "workspace:^",
"vue": "^3.4.29"
"vue": "^3.4.35"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@vitejs/plugin-vue": "^5.0.5",
"@vitejs/plugin-vue": "^5.1.2",
"@vue/tsconfig": "^0.5.1",
"openapi-typescript": "workspace:^",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vue-tsc": "^2.0.21"
"vite": "^5.3.5",
"vue-tsc": "^2.0.29"
}
}
2 changes: 1 addition & 1 deletion packages/openapi-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@
"openapi-typescript-fetch": "^2.0.0",
"superagent": "^9.0.2",
"typescript": "^5.4.5",
"vite": "^5.3.1"
"vite": "^5.3.5"
}
}
6 changes: 2 additions & 4 deletions packages/openapi-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,10 @@
"del-cli": "^5.1.0",
"esbuild": "^0.20.2",
"execa": "^8.0.1",
"openapi-typescript": "workspace:^",
"msw": "^2.3.1",
"openapi-typescript": "workspace:^",
"react": "^18.3.1",
"react-error-boundary": "^4.0.13",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
"react-error-boundary": "^4.0.13"
},
"peerDependencies": {
"@tanstack/react-query": "^5.0.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/openapi-react-query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"module": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"outDir": "dist",
"skipLibCheck": true,
"sourceRoot": ".",
"jsx": "react-jsx",
"target": "ES2022",
"types": ["vitest/globals"]
},
"include": ["scripts", "src", "test", "*.ts"],
"include": ["src", "test", "*.ts"],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion packages/openapi-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
"execa": "^8.0.1",
"strip-ansi": "^7.1.0",
"typescript": "^5.4.5",
"vite-node": "^1.6.0"
"vite-node": "^2.0.5"
}
}
1 change: 0 additions & 1 deletion packages/openapi-typescript/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from "vitest/config";
import os from "node:os";

export default defineConfig({
test: {
Expand Down
Loading

0 comments on commit 7de583a

Please sign in to comment.