Skip to content

Commit

Permalink
fix type check in tests (#3052)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi authored Dec 9, 2024
1 parent 7750244 commit 68f401e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jobs:
pnpm build
pnpm test
pnpm test:build
pnpm test-typing
1 change: 1 addition & 0 deletions .github/workflows/test-legacy-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
pnpm build
pnpm test
pnpm test:build
pnpm test-typing
1 change: 1 addition & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
pnpm attw
pnpm test
pnpm test:build
pnpm test-typing
e2e:
runs-on: ubuntu-latest
container:
Expand Down
11 changes: 10 additions & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"strict": false,
"jsx": "react-jsx"
"jsx": "react-jsx",
"baseUrl": "..",
"paths": {
"swr": ["./core/src/index.ts"],
"swr/infinite": ["./infinite/src/index.ts"],
"swr/immutable": ["./immutable/src/index.ts"],
"swr/mutation": ["./mutation/src/index.ts"],
"swr/_internal": ["./_internal/src/index.ts"],
"swr/subscription": ["subscription/src/index.ts"],
},
},
"include": [".", "./jest-setup.ts"],
"exclude": ["./type"]
Expand Down

0 comments on commit 68f401e

Please sign in to comment.