Switch to ESM for source and test, use CommonJS for dist (#806)

This commit is contained in:
Kevin Stillhammer authored and GitHub committed 2026-03-14 17:43:49 +01:00
1 parent f9070de1ea
commit fd8f376b22
23 files changed
+212259 -231165

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { createDefaultEsmPreset } from "ts-jest";
const esmPreset = createDefaultEsmPreset({
tsconfig: "./tsconfig.json",
});
export default {
...esmPreset,
clearMocks: true,
moduleFileExtensions: ["js", "mjs", "ts"],
testEnvironment: "node",
testMatch: ["**/*.test.ts"],
verbose: true,
};