-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a separate tsconfig file to specify jsx mode.
Next.js requires the typescript jsx mode to be `preserve`, but ts-jest needs it to be a flavor of `react`. See: - https://www.typescriptlang.org/docs/handbook/jsx.html - https://kulshekhar.github.io/ts-jest/docs/getting-started/options/tsconfig - kulshekhar/ts-jest#63 (comment) - vercel/next.js#19155 (reply in thread)
- Loading branch information
1 parent
f6e8efe
commit 9aee093
Showing
3 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"jsx": "react-jsx" | ||
} | ||
} |