-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jest.mergePreset: Fix compatibility with
NodeNext
(#1481)
* Fix `isolatedModules` tsconfig override * Try something * Add a changeset * Placate snapshot * pkg: Exclude `jest/*.test.ts` files
- Loading branch information
Showing
4 changed files
with
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
Jest.mergePreset: Fudge `Node16` and `NodeNext` module resolutions | ||
|
||
This works around a `ts-jest` issue where test cases fail to run if your `moduleResolution` is set to a modern mode: | ||
|
||
```json | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "Node16 | NodeNext" | ||
} | ||
} | ||
``` | ||
|
||
```console | ||
error TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'. | ||
error TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'. | ||
``` |
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,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
pkg: Exclude `jest/*.test.ts` files |
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