Skip to content

Commit 1aa1fba

Browse files
committed
cleanup
1 parent 67ae31e commit 1aa1fba

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

jest.config.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
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-
141
import { createDefaultEsmPreset } from 'ts-jest/dist/presets/create-jest-preset.js';
152

163
const tsJestTransformCfg = createDefaultEsmPreset().transform;

package.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,5 @@
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
}

0 commit comments

Comments
 (0)