Skip to content

Commit f248917

Browse files
committed
fix typescript issue
1 parent 221660d commit f248917

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

exercises/10.custom-assertions/01.problem.location/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5+
// this is necessary because our custom matchers are overriding the jest-dom matchers types
6+
"types": ["vitest", "@testing-library/jest-dom"],
57
"isolatedModules": true,
68
"esModuleInterop": true,
79
"jsx": "react-jsx",

exercises/10.custom-assertions/01.solution.location/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5+
// this is necessary because our custom matchers are overriding the jest-dom matchers types
6+
"types": ["vitest", "@testing-library/jest-dom"],
57
"isolatedModules": true,
68
"esModuleInterop": true,
79
"jsx": "react-jsx",

exercises/11.test-db/01.problem.setup/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5+
// this is necessary because our custom matchers are overriding the jest-dom matchers types
6+
"types": ["vitest", "@testing-library/jest-dom"],
57
"isolatedModules": true,
68
"esModuleInterop": true,
79
"jsx": "react-jsx",

exercises/11.test-db/01.solution.setup/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5+
// this is necessary because our custom matchers are overriding the jest-dom matchers types
6+
"types": ["vitest", "@testing-library/jest-dom"],
57
"isolatedModules": true,
68
"esModuleInterop": true,
79
"jsx": "react-jsx",

exercises/11.test-db/02.problem.isolated-db/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5+
// this is necessary because our custom matchers are overriding the jest-dom matchers types
6+
"types": ["vitest", "@testing-library/jest-dom"],
57
"isolatedModules": true,
68
"esModuleInterop": true,
79
"jsx": "react-jsx",

exercises/11.test-db/02.solution.isolated-db/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5+
// this is necessary because our custom matchers are overriding the jest-dom matchers types
6+
"types": ["vitest", "@testing-library/jest-dom"],
57
"isolatedModules": true,
68
"esModuleInterop": true,
79
"jsx": "react-jsx",

exercises/11.test-db/03.problem.global-setup/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5+
// this is necessary because our custom matchers are overriding the jest-dom matchers types
6+
"types": ["vitest", "@testing-library/jest-dom"],
57
"isolatedModules": true,
68
"esModuleInterop": true,
79
"jsx": "react-jsx",

exercises/11.test-db/03.solution.global-setup/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"include": ["**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5+
// this is necessary because our custom matchers are overriding the jest-dom matchers types
6+
"types": ["vitest", "@testing-library/jest-dom"],
57
"isolatedModules": true,
68
"esModuleInterop": true,
79
"jsx": "react-jsx",

0 commit comments

Comments
 (0)