Skip to content

Commit 1db0da7

Browse files
committed
Only use jest global types by default
1 parent 0e06fa3 commit 1db0da7

File tree

8 files changed

+19
-5
lines changed

8 files changed

+19
-5
lines changed
+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"types": ["testing-library__jest-dom"]
5+
},
36
"include": ["src/**/*"]
47
}

code/addons/links/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"strict": true
4+
"strict": true,
5+
"types": ["testing-library__jest-dom"]
56
},
67
"include": ["src/**/*"]
78
}

code/lib/client-logger/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"strict": true
4+
"strict": true,
5+
"types": ["node", "jest"]
56
},
67
"include": ["src/**/*"]
78
}

code/lib/postinstall/tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"types": ["node"]
5+
},
36
"include": ["src/**/*"]
47
}

code/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"isolatedModules": true,
1616
"strictBindCallApply": true,
1717
"lib": ["dom", "esnext"],
18-
"noUnusedLocals": true
18+
"noUnusedLocals": true,
19+
"types": ["jest"]
1920
},
2021
"exclude": ["dist", "**/dist", "node_modules", "**/node_modules", "**/setup-jest.ts"],
2122
"ts-node": {

code/ui/components/src/typings.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
declare module 'global';
22
declare module 'markdown-to-jsx';
33
declare module '*.md';
4+
declare module '*.mdx';

code/ui/components/tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"compilerOptions": {},
3+
"compilerOptions": {
4+
"types": ["react-syntax-highlighter", "jest"]
5+
},
46
"include": ["src/**/*"]
57
}

code/ui/manager/tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"compilerOptions": {},
3+
"compilerOptions": {
4+
"types": ["testing-library__jest-dom"]
5+
},
46
"include": ["src/**/*"]
57
}

0 commit comments

Comments
 (0)