mirror of
https://github.com/ershisan99/flashcards-admin-bot.git
synced 2025-12-16 20:59:25 +00:00
initial commit
This commit is contained in:
18
jest.config.js
Normal file
18
jest.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
export default {
|
||||
testEnvironment: 'node',
|
||||
preset: 'ts-jest/presets/default-esm',
|
||||
transform: {
|
||||
'^.+\\.m?[tj]s?$': ['ts-jest', { useESM: true }],
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^(\\.{1,2}/.*)\\.(m)?js$': '$1',
|
||||
},
|
||||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(m)?ts$',
|
||||
coverageDirectory: 'coverage',
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.ts',
|
||||
'src/**/*.mts',
|
||||
'!src/**/*.d.ts',
|
||||
'!src/**/*.d.mts',
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user