Skip to content

Commit

Permalink
refactor: use a single root tsconfig for type tests (#13358)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas authored Oct 2, 2022
1 parent 0b4a6ec commit 22322c9
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 93 deletions.
10 changes: 1 addition & 9 deletions packages/expect-utils/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
10 changes: 1 addition & 9 deletions packages/expect/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
10 changes: 1 addition & 9 deletions packages/jest-expect/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
7 changes: 1 addition & 6 deletions packages/jest-mock/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"extends": "../../../tsconfig.json",
"extends": "../../../tsconfig.typetest.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": ["node"]
},
"include": ["./**/*"]
Expand Down
10 changes: 1 addition & 9 deletions packages/jest-reporters/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
10 changes: 1 addition & 9 deletions packages/jest-resolve/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
10 changes: 1 addition & 9 deletions packages/jest-runner/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
10 changes: 1 addition & 9 deletions packages/jest-snapshot/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
10 changes: 1 addition & 9 deletions packages/jest-types/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
7 changes: 1 addition & 6 deletions packages/jest-worker/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"extends": "../../../tsconfig.json",
"extends": "../../../tsconfig.typetest.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": ["node"]
},
"include": ["./**/*"]
Expand Down
10 changes: 1 addition & 9 deletions packages/jest/__typetests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"composite": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
},
"extends": "../../../tsconfig.typetest.json",
"include": ["./**/*"]
}
13 changes: 13 additions & 0 deletions tsconfig.typetest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": false,
"emitDeclarationOnly": false,
"noEmit": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,

"types": []
}
}

0 comments on commit 22322c9

Please sign in to comment.