forked from sismo-core/sismo-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.ts
More file actions
20 lines (20 loc) · 715 Bytes
/
jest.config.ts
File metadata and controls
20 lines (20 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export default {
preset: "ts-jest",
setupFilesAfterEnv: ["./jest.setup.ts"],
testPathIgnorePatterns: ["/node_modules/", "/build/"],
collectCoverageFrom: ["src/**/*.ts", "attesters/base/hydra-s1/**/*.ts"],
moduleDirectories: ["node_modules", "src"],
moduleNameMapper: {
"@badges-metadata/(.*)": "<rootDir>/badges-metadata/$1",
"@flows/(.*)": "<rootDir>/flows/$1",
"@group-generators/(.*)": "<rootDir>/group-generators/$1",
},
testEnvironment: "jest-environment-node-single-context",
};
process.env = {
...process.env,
// These env vars needs to be defined for the aws sdk to work
AWS_REGION: "eu-west-1",
AWS_ACCESS_KEY_ID: "minioadmin",
AWS_SECRET_ACCESS_KEY: "minioadmin",
};