test: fix jest configurations

pull/2172/head
mehmet-erim 5 years ago
parent 80e362a06d
commit e9c3e40127

@ -3,5 +3,4 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'account-config',
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -3,5 +3,4 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'account',
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -1,10 +1,6 @@
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { compilerOptions } = require('./tsconfig.spec');
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'core',
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths /*, { prefix: '<rootDir>/' } */),
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -5,10 +5,7 @@
"esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"],
"paths": {
"@abp/ng.core/*": ["packages/core/src/lib/*"]
}
"types": ["jest", "node"]
},
"include": ["**/*.spec.ts", "**/*.d.ts"]
}

@ -3,5 +3,4 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'feature-management',
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -2,6 +2,5 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'setting-management-config',
'ts-jest': { allowSyntheticDefaultImports: true },
name: 'identity-config',
};

@ -3,5 +3,4 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'identity',
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -3,5 +3,4 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'permission-management',
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -2,6 +2,5 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'identity-config',
'ts-jest': { allowSyntheticDefaultImports: true },
name: 'setting-management-config',
};

@ -2,6 +2,5 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'identity-config',
'ts-jest': { allowSyntheticDefaultImports: true },
name: 'setting-management',
};

@ -3,5 +3,4 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'tenant-management-config',
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -3,5 +3,4 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'tenant-management',
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -3,5 +3,4 @@ const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'theme-basic',
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -1,10 +1,6 @@
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { compilerOptions } = require('./tsconfig.spec');
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'theme-shared',
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths /*, { prefix: '<rootDir>/' } */),
'ts-jest': { allowSyntheticDefaultImports: true },
};

@ -5,10 +5,7 @@
"esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"],
"paths": {
"@abp/ng.theme-shared/*": ["packages/theme-shared/src/lib/*"]
}
"types": ["jest", "node"]
},
"include": ["**/*.spec.ts", "**/*.d.ts"]
}

Loading…
Cancel
Save