Martin Berg Alstad 2e73baf98b
✏ README, fix start-once bug and refactor
- Added some configuration and running to README
- Refactored some code
- Fixed exception when stopping a start-once script
- Only allow running with pnpm
- Moved transactions into sparebank1Api.ts
- Formatted
2025-01-25 22:30:52 +01:00

23 lines
437 B
TypeScript

import type { JestConfigWithTsJest } from "ts-jest"
const config: JestConfigWithTsJest = {
verbose: true,
transform: {
"^.+\\.ts?$": [
"ts-jest",
{
useESM: true,
},
],
},
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
// Resolve @/ module paths
"@/(.*)": "<rootDir>/src/$1",
},
setupFiles: ["<rootDir>/config.ts"],
}
export default config