Skip to content

Commit

Permalink
Exclude e2e.js from TypeScript
Browse files Browse the repository at this point in the history
This is due to a problem with Cypress types when importing Cypress
programatically. It overwrites the global Jest types and Jest tests
think they are using Mocha and Chai `expect`, instead of Jest's.
  • Loading branch information
luisherranz committed Aug 25, 2020
1 parent d67dcfa commit 7dfccab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
// Transpile JS as well.
"allowJs": true
},
"exclude": ["**/node_modules/*", "**/dist/*", "**/build/*"],
"exclude": ["**/node_modules/*", "**/dist/*", "**/build/*", "e2e/e2e.js"],
"include": ["packages", "examples", "e2e"]
}

0 comments on commit 7dfccab

Please sign in to comment.