Skip to content

Commit

Permalink
build(deps-dev): bump jest from 28.1.0 to 29.7.0, ts-jest from 28…
Browse files Browse the repository at this point in the history
….0.3 to 29.1.5; update config (#64)
  • Loading branch information
pmstss authored Jul 5, 2024
1 parent cb61824 commit 2fff661
Show file tree
Hide file tree
Showing 4 changed files with 551 additions and 1,029 deletions.
22 changes: 8 additions & 14 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
const { compilerOptions } = require('./tsconfig');
const { pathsToModuleNameMapper } = require('ts-jest');

/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.json',
isolatedModules: true
}
},
transform: {
'^.+\\.[tj]sx?$': 'ts-jest'
'^.+\\.[tj]sx?$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.json',
isolatedModules: true
}
]
},
maxWorkers: '25%',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '<rootDir>/coverage',
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths ?? [], {
prefix: '<rootDir>'
})
coverageDirectory: '<rootDir>/coverage'
};
Loading

0 comments on commit 2fff661

Please sign in to comment.