Skip to content

Commit d9a896a

Browse files
authored
chore: run type tests in CI (#110)
1 parent efbef40 commit d9a896a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@ jobs:
3232
- name: Test
3333
run: pnpm test
3434

35+
- name: Test types
36+
run: pnpm --filter typed-openapi test:types
37+
3538
- name: Release package
3639
run: pnpm dlx pkg-pr-new publish './packages/typed-openapi'

packages/typed-openapi/tests/integration.types.tstyche.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe("Example API Client", () => {
164164

165165
it("header specific typings are merged with overrides/HeadersInit", async () => {
166166
// @ts-expect-error Property 'header' is missing in type
167-
const result = await api.delete("/pet/{petId}", {
167+
await api.delete("/pet/{petId}", {
168168
path: { petId: 42 },
169169
});
170170

packages/typed-openapi/tstyche.config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"$schema": "https://tstyche.org/schemas/config.json",
33
"checkSuppressedErrors": true,
4-
"checkSourceFiles": true,
5-
"tsconfig": "./tsconfig.ci.json",
4+
"checkSourceFiles": false,
65
"testFileMatch": [
76
"tests/*.tstyche.ts"
87
]

0 commit comments

Comments
 (0)