5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2026-03-22 02:39:09 +00:00

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

This commit is contained in:
Kevin Stillhammer
2026-03-14 17:43:49 +01:00
committed by GitHub
parent f9070de1ea
commit fd8f376b22
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,
};