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

20 строки
518 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: '.e2e-spec.ts$',
transform: {
'^.+\\.(t|j)s$': [
'ts-jest',
{
isolatedModules: true,
},
],
},
coverageDirectory: './coverage',
testEnvironment: 'node',
};