Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat committed Nov 17, 2024
1 parent 7c2f012 commit e8a6ef6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
const { pathsToModuleNameMapper } = require('ts-jest');
//const { compilerOptions } = require('./tsconfig.json');
import { pathsToModuleNameMapper } from 'ts-jest';

const tsConfigPaths = {
'@/*': ['src/*'],
'@tests/*': ['tests/*'],
'@/*': [ 'src/*' ],
'@tests/*': [ 'tests/*' ],
};

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

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

0 comments on commit e8a6ef6

Please sign in to comment.