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