mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 14:10:45 +00:00
21 lines
507 B
TypeScript
21 lines
507 B
TypeScript
export default {
|
|
testEnvironment: "node",
|
|
testRegex: "/tests/.*\\.(test|spec)?\\.(ts|tsx)$",
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
|
extensionsToTreatAsEsm: [".ts"],
|
|
moduleNameMapper: {
|
|
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
},
|
|
transform: {
|
|
"^.+\\.tsx?$": [
|
|
"ts-jest",
|
|
{
|
|
useESM: true,
|
|
tsconfig: "tsconfig.jest.json",
|
|
},
|
|
],
|
|
},
|
|
transformIgnorePatterns: ["node_modules/(?!(node:)/)"],
|
|
preset: "ts-jest/presets/default-esm",
|
|
};
|