-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (31 loc) · 999 Bytes
/
Copy pathjest.config.js
File metadata and controls
34 lines (31 loc) · 999 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
34
/** @type {import("ts-jest").JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/tests/**/*.ts'],
testPathIgnorePatterns: ['/node_modules/', '/tests/utils.ts'],
transform: {
'^.+\.ts$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
},
moduleNameMapper: {
'^@feugene/mu$': '<rootDir>/src/index.ts',
'^@feugene/mu/format$': '<rootDir>/src/format/index.ts',
'^@feugene/mu/object$': '<rootDir>/src/object/index.ts',
'^@feugene/mu/is$': '<rootDir>/src/is/index.ts',
'^@feugene/mu/to$': '<rootDir>/src/to/index.ts',
'^~/(.*)$': '<rootDir>/src/$1',
},
collectCoverageFrom: [
'**/src/**/*.{js,ts}',
'!**/node_modules/**',
'!**/src/config.ts',
'!**/src/**/index.ts',
'!**/src/i18/ru.ts',
'!**/src/i18/var.ts',
'!**/src/internal/free/*',
'!**/src/internal/root.ts',
'!**/src/internal/types.ts',
],
coverageProvider: 'v8',
moduleFileExtensions: ['ts', 'js', 'json'],
}