mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-12 13:14:17 +00:00
Switch to ESM for source and test, use CommonJS for dist
This commit is contained in:
parent
f9070de1ea
commit
27b24ababa
23 changed files with 212259 additions and 231165 deletions
14
jest.config.mjs
Normal file
14
jest.config.mjs
Normal 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,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue