2024-09-14 14:21:33 +02:00
|
|
|
const path = require("path");
|
|
|
|
const toptions = { tsconfig: "<rootDir>/etc/tsconfig.json" }
|
2023-09-28 23:10:15 +02:00
|
|
|
module.exports = {
|
2024-09-14 14:21:33 +02:00
|
|
|
rootDir: path.resolve(__dirname, ".."),
|
|
|
|
transform: { "^.+\\.(ts|tsx)$": ["ts-jest", toptions]},
|
|
|
|
preset: "ts-jest",
|
2023-09-28 23:10:15 +02:00
|
|
|
testEnvironment: "jsdom",
|
2024-09-14 14:21:33 +02:00
|
|
|
moduleNameMapper: { "^~/(.*)$": "<rootDir>/src/js/$1" },
|
|
|
|
moduleFileExtensions: ["js", "ts", "tsx"],
|
2023-09-28 23:10:15 +02:00
|
|
|
};
|