1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-03-21 23:52:12 +01:00

Refactor tests to modedules based package

This commit is contained in:
Jozef Izso 2026-03-02 14:29:31 +01:00
parent ef1f9a4e60
commit 4d6f6ca5f4
Failed to extract signature
18 changed files with 119 additions and 56 deletions

14
jest.config.cjs Normal file
View file

@ -0,0 +1,14 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': ['ts-jest', {useESM: true}]
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1'
},
extensionsToTreatAsEsm: ['.ts'],
verbose: true
}