1
0
mirror of https://github.com/sadfsdfdsa/allbot.git synced 2024-11-19 00:31:42 +02:00
telegram-allbot/jest.config.mjs
2023-08-30 15:17:17 +05:00

17 lines
395 B
JavaScript

/** @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 },
],
},
}