forked from crackedstudio/tikka
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
33 lines (33 loc) · 890 Bytes
/
Copy pathjest.config.js
File metadata and controls
33 lines (33 loc) · 890 Bytes
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
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: '.',
testRegex: '.*\\.spec\.ts$',
transform: {
'^.+\\.(t|j)s$': ['ts-jest', {
useESM: true,
tsconfig: {
esModuleInterop: true,
allowSyntheticDefaultImports: true,
},
}],
},
transformIgnorePatterns: [
'/node_modules/(?!(@noble|@stellar|@scure|stellar-sdk)/)',
],
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
'^@noble/curves/(.+)(?<!\\.js)$': '@noble/curves/$1.js',
},
coverageReporters: ['lcov', 'text'],
coverageDirectory: './coverage',
coverageThreshold: {
global: {
statements: 50,
branches: 30,
functions: 40,
lines: 50,
},
},
};