forked from CoralSwap-Finance/coralswap-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
23 lines (23 loc) · 690 Bytes
/
Copy pathjest.config.js
File metadata and controls
23 lines (23 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/**/*.test.ts'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
collectCoverageFrom: ['src/**/*.ts', '!src/**/index.ts'],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'json-summary'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
// Suppress pre-existing type errors in source files so tests can run.
// Type-checking is enforced separately via `tsc --noEmit`.
diagnostics: false,
},
],
},
};