Skip to content

Commit 19075fb

Browse files
authored
Merge pull request #3665 from hey-api/refactor/tests
test: clean up
2 parents edd0702 + d9a2f2a commit 19075fb

58 files changed

Lines changed: 1059 additions & 1291 deletions

File tree

Some content is hidden

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

dev/openapi-python.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export default defineConfig(() => [
2121
output: {
2222
path: path.resolve(__dirname, 'gen', 'python'),
2323
},
24-
plugins: getPreset(),
24+
plugins: [...getPreset()],
2525
},
2626
]);

dev/openapi-ts.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export default defineConfig(() => [
2121
output: {
2222
path: path.resolve(__dirname, 'gen', 'typescript'),
2323
},
24-
plugins: getPreset(),
24+
plugins: [...getPreset()],
2525
},
2626
]);

dev/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@hey-api/codegen-core": "workspace:*",
1313
"@hey-api/openapi-python": "workspace:*",
1414
"@hey-api/openapi-ts": "workspace:*",
15+
"@msw/source": "0.6.1",
1516
"@opencode-ai/sdk": "1.2.27",
1617
"@orpc/contract": "1.13.9",
1718
"@pinia/colada": "0.19.1",
@@ -22,6 +23,7 @@
2223
"@tanstack/svelte-query": "5.90.2",
2324
"@tanstack/vue-query": "5.92.9",
2425
"arktype": "2.2.0",
26+
"msw": "2.12.14",
2527
"nuxt": "3.21.0",
2628
"swr": "2.4.1",
2729
"tsx": "4.21.0",

docs/data/people.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export const joshHemphill: Person = {
1818
name: 'Josh Hemphill',
1919
};
2020

21+
export const malcolmKee: Person = {
22+
github: 'https://github.com/malcolm-kee',
23+
name: 'Malcolm Kee',
24+
};
25+
2126
export const maxScopp: Person = {
2227
github: 'https://github.com/max-scopp',
2328
name: 'Max Scopp',

docs/openapi-ts/migrating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ useQuery(() => ({
155155
...getPetByIdQuery({
156156
path: { petId: petId.value as number },
157157
}),
158-
enabled: () => petId.value != null,
158+
enabled: () => petId.value !== null,
159159
}));
160160
```
161161

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export default tseslint.config(
5858
'**/dist/',
5959
'**/node_modules/',
6060
'temp/',
61-
'dev/.gen/',
61+
'dev/gen/',
62+
'dev/playground.ts',
6263
'examples/openapi-ts-nestjs/src/client/**/*.ts',
6364
'examples/openapi-ts-openai/src/client/**/*.ts',
6465
'**/test/generated/',

examples/openapi-ts-angular-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@types/node": "24.10.10",
3939
"@typescript-eslint/eslint-plugin": "8.29.1",
4040
"@typescript-eslint/parser": "8.29.1",
41-
"eslint": "9.17.0",
41+
"eslint": "9.39.2",
4242
"jasmine-core": "5.6.0",
4343
"karma": "6.4.4",
4444
"karma-chrome-launcher": "3.2.0",

examples/openapi-ts-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@types/node": "24.10.10",
3939
"@typescript-eslint/eslint-plugin": "8.29.1",
4040
"@typescript-eslint/parser": "8.29.1",
41-
"eslint": "9.17.0",
41+
"eslint": "9.39.2",
4242
"jasmine-core": "5.6.0",
4343
"karma": "6.4.4",
4444
"karma-chrome-launcher": "3.2.0",

examples/openapi-ts-axios/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"@typescript-eslint/parser": "8.29.1",
2828
"@vitejs/plugin-react": "4.4.0-beta.1",
2929
"autoprefixer": "10.4.19",
30-
"eslint": "9.17.0",
30+
"eslint": "9.39.2",
3131
"eslint-plugin-react-hooks": "5.2.0",
3232
"eslint-plugin-react-refresh": "0.4.7",
33-
"oxfmt": "0.27.0",
33+
"oxfmt": "0.41.0",
3434
"postcss": "8.4.41",
3535
"tailwindcss": "3.4.9",
3636
"typescript": "5.9.3",

examples/openapi-ts-fastify/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
},
1515
"devDependencies": {
1616
"@hey-api/openapi-ts": "workspace:*",
17-
"eslint": "9.17.0",
18-
"oxfmt": "0.27.0",
17+
"eslint": "9.39.2",
18+
"oxfmt": "0.41.0",
1919
"typescript": "5.9.3",
2020
"vite": "7.3.1",
21-
"vitest": "4.0.18"
21+
"vitest": "4.1.0"
2222
}
2323
}

0 commit comments

Comments
 (0)