testing with jest

This commit is contained in:
2024-12-16 21:25:36 +00:00
parent 9ed0a19393
commit c43bff3e15
5 changed files with 2706 additions and 46 deletions

19
jest.config.ts Normal file
View File

@ -0,0 +1,19 @@
import type { JestConfigWithTsJest } from "ts-jest"
const config: JestConfigWithTsJest = {
verbose: true,
transform: {
"^.+\\.ts?$": [
"ts-jest",
{
useESM: true,
},
],
},
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
}
export default config