File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ import { createDefaultEsmPreset } from 'ts-jest/dist/presets/create-jest-preset.js' ;
2+
3+ const tsJestTransformCfg = createDefaultEsmPreset ( ) . transform ;
4+
5+ /** @type {import("jest").Config } **/
6+ export default {
7+ testEnvironment : 'node' ,
8+ transform : {
9+ ...tsJestTransformCfg ,
10+ } ,
11+ extensionsToTreatAsEsm : [ '.ts' ] ,
12+ waitForUnhandledRejections : true ,
13+ testMatch : [ '**/*.test.ts' ] ,
14+ } ;
Original file line number Diff line number Diff line change 2727 "check" : " tsc --noEmit --pretty" ,
2828 "build" : " tsup" ,
2929 "watch" : " tsup --watch" ,
30+ "testonly" : " NODE_OPTIONS=\" $NODE_OPTIONS --experimental-vm-modules\" jest " ,
3031 "prerelease" : " . ./resources/prepublish.sh" ,
3132 "release" : " changeset publish"
3233 },
You can’t perform that action at this time.
0 commit comments