-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: drop CommonJS distribution from package
BREAKING CHANGE: removes the CommonJS distribution from the package Signed-off-by: Jon Koops <[email protected]>
- Loading branch information
1 parent
ad592cd
commit 0670bd2
Showing
12 changed files
with
200 additions
and
1,568 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} **/ | ||
module.exports = { | ||
import { createDefaultEsmPreset } from 'ts-jest' | ||
|
||
const defaultPreset = createDefaultEsmPreset() | ||
|
||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
const jestConfig = { | ||
...defaultPreset, | ||
testEnvironment: 'jsdom', | ||
transform: { | ||
'^.+.tsx?$': [ | ||
'ts-jest', | ||
{ | ||
tsconfig: 'tsconfig.spec.json', | ||
}, | ||
], | ||
}, | ||
}; | ||
// Convert `.js` imports to one without an extension to support 'NodeNext' module resolution. | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1' | ||
} | ||
} | ||
|
||
export default jestConfig |
Oops, something went wrong.