Skip to content

Commit

Permalink
fix conflicting types with cypress and jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Y-Ko committed Sep 18, 2023
1 parent 664c42e commit 5b03bb3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cypress/fixtures/profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"id": 8739,
"name": "Jane",
"email": "[email protected]"
}
}
2 changes: 1 addition & 1 deletion cypress/fixtures/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,4 @@
"bs": "target end-to-end models"
}
}
]
]
Binary file not shown.
17 changes: 17 additions & 0 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"es5",
"dom"
],
"types": [
"cypress",
"node"
]
},
"include": [
"../node_modules/cypress",
"**/*.ts"
]
}
18 changes: 14 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
},
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -26,7 +30,9 @@
}
],
"paths": {
"@/*": ["./src/*"]
"@/*": [
"./src/*"
]
}
},
"include": [
Expand All @@ -37,5 +43,9 @@
".next/types/**/*.ts",
"jest.config.mjs"
],
"exclude": ["node_modules"]
}
"exclude": [
"node_modules",
"cypress.config.ts",
"cypress"
]
}

0 comments on commit 5b03bb3

Please sign in to comment.