forked from zama-ai/relayer-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.base.config.cjs
More file actions
45 lines (45 loc) · 1.02 KB
/
jest.base.config.cjs
File metadata and controls
45 lines (45 loc) · 1.02 KB
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
38
39
40
41
42
43
44
45
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.ts$': [
'ts-jest',
{
tsconfig: 'tsconfig.test.json',
},
],
'^.+\\.js$': [
'ts-jest',
{
tsconfig: 'tsconfig.test.json',
},
],
'^.+\\.bin$': ['<rootDir>config/rawLoader.cjs'],
},
testEnvironment: 'node',
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
moduleNameMapper: {
'^@base/(.*)$': '<rootDir>/src/base/$1',
'^@sdk/(.*)$': '<rootDir>/src/sdk/$1',
'^@relayer-provider/(.*)$': '<rootDir>/src/relayer-provider/$1',
},
collectCoverageFrom: [
'src/**/*.ts',
'!src/test/*',
'!src/**/*.d.ts',
'!src/kms/*',
'!src/init.ts',
'!src/node.ts',
'!src/web.ts',
],
coverageReporters: ['lcov', 'text-summary', 'json'],
transformIgnorePatterns: ['/node_modules/'],
testPathIgnorePatterns: ['/node_modules/', '/e2e/'],
coverageThreshold: {
global: {
branches: 70,
functions: 62,
lines: 75,
},
},
testRegex: '\\.test\\.ts$',
};