forked from spatie/package-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
22 lines (18 loc) · 949 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//const { pathsToModuleNameMapper } = require('ts-jest/utils');
//const { compilerOptions } = require('./tsconfig.json');
// In the following statement, replace `./tsconfig` with the path to your `tsconfig` file
// which contains the path mapping (ie the `compilerOptions.paths` option):
module.exports = {
preset: 'ts-jest/presets/js-with-ts',
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__test__/.*|/tests/.*|(\\.|/)(test|spec))\\.[tj]sx?$',
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/tests/helpers/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
coverageDirectory: './coverage',
coverageReporters: ['html', 'text'],
collectCoverageFrom: ['src/**/*.{ts,js}', '!**/node_modules/**', '!**/vendor/**', '!**/dist/**', '!**/tests/**'],
//moduleNameMapper: pathsToModuleNameMapper({'@/*': 'src'} /*, { prefix: '<rootDir>/' } */ ),
};