-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.ts
26 lines (23 loc) · 979 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
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;