Switch to ESM for source and test, use CommonJS for dist

This commit is contained in:
Kevin Stillhammer 2026-03-14 14:11:59 +01:00
parent f9070de1ea
commit 27b24ababa
No known key found for this signature in database
23 changed files with 212259 additions and 231165 deletions

14
jest.config.mjs Normal file
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,
};