Skip to content

Commit 68f401e

Browse files
authored
fix type check in tests (#3052)
1 parent 7750244 commit 68f401e

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.github/workflows/test-canary.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ jobs:
2424
pnpm build
2525
pnpm test
2626
pnpm test:build
27+
pnpm test-typing

.github/workflows/test-legacy-react.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jobs:
2626
pnpm build
2727
pnpm test
2828
pnpm test:build
29+
pnpm test-typing

.github/workflows/test-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
pnpm attw
2828
pnpm test
2929
pnpm test:build
30+
pnpm test-typing
3031
e2e:
3132
runs-on: ubuntu-latest
3233
container:

test/tsconfig.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"strict": false,
5-
"jsx": "react-jsx"
5+
"jsx": "react-jsx",
6+
"baseUrl": "..",
7+
"paths": {
8+
"swr": ["./core/src/index.ts"],
9+
"swr/infinite": ["./infinite/src/index.ts"],
10+
"swr/immutable": ["./immutable/src/index.ts"],
11+
"swr/mutation": ["./mutation/src/index.ts"],
12+
"swr/_internal": ["./_internal/src/index.ts"],
13+
"swr/subscription": ["subscription/src/index.ts"],
14+
},
615
},
716
"include": [".", "./jest-setup.ts"],
817
"exclude": ["./type"]

0 commit comments

Comments
 (0)