File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change 1- const _ = process ;
2-
3- // @ts -expect-error we need to put this inside jest.config.js,
4- // since it's being read before the process object is replaced by the jest runner.
5- // More info:
6- // https://johann.pardanaud.com/blog/how-to-assert-unhandled-rejection-and-uncaught-exception-with-jest/
7- // https://github.com/jestjs/jest/issues/5620
8- // https://github.com/jestjs/jest/issues/11165
9- // https://codesandbox.io/p/devbox/z9qdp4?migrateFrom=zzjfzz
10- global . _onUnhandledRejection = handler => {
11- _ . on ( 'unhandledRejection' , handler ) ;
12- } ;
13-
141import { createDefaultEsmPreset } from 'ts-jest/dist/presets/create-jest-preset.js' ;
152
163const tsJestTransformCfg = createDefaultEsmPreset ( ) . transform ;
Original file line number Diff line number Diff line change 6969 "files" : " src/**/*.ts"
7070 }
7171 ]
72- },
73- "tsdown" : {
74- "entry" : [
75- " src/index.ts"
76- ],
77- "format" : [
78- " cjs" ,
79- " esm"
80- ],
81- "dts" : true ,
82- "sourcemap" : true ,
83- "clean" : true
8472 }
8573}
You can’t perform that action at this time.
0 commit comments