fxa/packages/fxa-admin-server/jest.config.js

20 строки
514 B
JavaScript

const { pathsToModuleNameMapper } = require('ts-jest');
const { compilerOptions } = require('./tsconfig.build.json');
module.exports = {
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
modulePaths: ['<rootDir>/../dist/'],
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testRegex: '.spec.ts$',
transform: {
'^.+\\.(t|j)s$': [
'ts-jest',
{
isolatedModules: true,
},
],
},
coverageDirectory: './coverage',
testEnvironment: 'node',
};