UNPKG

poto-siril

Version:

Automatization around Siril (<https://siril.org/>) for deep sky astrophotography.

17 lines (16 loc) 696 B
const jestConfig = { preset: "ts-jest/presets/default-esm", // Use ESM-compatible preset extensionsToTreatAsEsm: [".ts"], // Treat these extensions as ESM transform: { "^.+\\.ts$": ["ts-jest", { useESM: true }], // Use ts-jest to handle TypeScript files with ESM }, testEnvironment: "node", // Use Node.js environment moduleNameMapper: { "^(\\.{1,2}/.*)\\.js$": "$1", // Map module paths correctly }, transformIgnorePatterns: [ "/node_modules/(?!chalk|ansi-escapes)", // Ensure node_modules are transformed correctly ], setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"], // Add custom matcher setup file }; export default jestConfig;