-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjest.config.ts
37 lines (34 loc) · 963 Bytes
/
jest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { createDefaultEsmPreset, type JestConfigWithTsJest } from "ts-jest";
const presetConfig = createDefaultEsmPreset({});
const jestConfig: JestConfigWithTsJest = {
...presetConfig,
testMatch: ["**/*.test.ts"],
testPathIgnorePatterns: [
"<rootDir>/tealscript_contracts/",
"@algorandfoundation/tealscript",
],
coveragePathIgnorePatterns: [
"<rootDir>/tealscript_contracts/",
"@algorandfoundation/tealscript",
],
modulePathIgnorePatterns: [
"<rootDir>/tealscript_contracts/",
"@algorandfoundation/tealscript",
],
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
astTransformers: {
before: [
"node_modules/@algorandfoundation/algorand-typescript-testing/test-transformer/jest-transformer.mjs",
],
},
},
],
},
extensionsToTreatAsEsm: [".ts"],
};
export default jestConfig;