Skip to content

Commit e8a6ef6

Browse files
committed
wip
1 parent 7c2f012 commit e8a6ef6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

jest.config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
const { pathsToModuleNameMapper } = require('ts-jest');
2-
//const { compilerOptions } = require('./tsconfig.json');
1+
import { pathsToModuleNameMapper } from 'ts-jest';
2+
33
const tsConfigPaths = {
4-
'@/*': ['src/*'],
5-
'@tests/*': ['tests/*'],
4+
'@/*': [ 'src/*' ],
5+
'@tests/*': [ 'tests/*' ],
66
};
77

88
/** @type {import('@jest/types').Config.InitialOptions } */
9-
module.exports = {
9+
export default {
1010
preset: 'ts-jest/presets/js-with-ts',
1111
testEnvironment: 'node',
1212
transform: { '^.+\\.tsx?$': 'ts-jest' },
1313
testRegex: '(/__test__/.*|/tests/.*|(\\.|/)(test|spec))\\.[tj]sx?$',
14-
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
15-
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
14+
testPathIgnorePatterns: [ '/node_modules/', '/dist/' ],
15+
moduleFileExtensions: [ 'ts', 'tsx', 'js', 'jsx', 'json' ],
1616
moduleNameMapper: pathsToModuleNameMapper(tsConfigPaths, { prefix: `${__dirname}/` }),
1717

1818
coverageDirectory: './coverage',
19-
coverageReporters: ['html', 'text'],
20-
collectCoverageFrom: ['src/**/*.{ts,js}', '!**/node_modules/**', '!**/vendor/**', '!**/dist/**', '!**/tests/**'],
19+
coverageReporters: [ 'html', 'text' ],
20+
collectCoverageFrom: [ 'src/**/*.{ts,js}', '!**/node_modules/**', '!**/vendor/**', '!**/dist/**', '!**/tests/**' ],
2121
};

0 commit comments

Comments
 (0)