- 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
23 lines
437 B
TypeScript
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
|