зеркало из https://github.com/mozilla/fxa.git
20 строки
518 B
JavaScript
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',
|
|
};
|