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:
parent
ef1f9a4e60
commit
4d6f6ca5f4
18 changed files with 119 additions and 56 deletions
14
jest.config.cjs
Normal file
14
jest.config.cjs
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue