1
0
mirror of https://github.com/sadfsdfdsa/allbot.git synced 2024-11-24 08:32:11 +02:00
telegram-allbot/jest.config.mjs

17 lines
395 B
JavaScript
Raw Normal View History

/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s'],
moduleNameMapper: {
'^(\\..*)\\.js$': '$1',
},
moduleFileExtensions: ['js', 'ts'],
transform: {
'.ts': [
'ts-jest',
{ tsconfig: 'jest.tsconfig.json', isolatedModules: true, useESM: true },
],
},
}