mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-07-11 07:08:24 -06:00
PR-780243: adding only one source of truth.
This commit is contained in:
jest.config.jspackage-lock.jsonpackage.json
src
tsconfig.jsonwebpack.config.dev.tswebpack.config.ts@ -1,6 +1,15 @@
|
||||
const { pathsToModuleNameMapper } = require('ts-jest');
|
||||
const { compilerOptions } = require('./tsconfig');
|
||||
|
||||
const aliases = pathsToModuleNameMapper(compilerOptions.paths, {
|
||||
prefix: '<rootDir>'
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
testEnvironment: 'node',
|
||||
transform: {
|
||||
"^.+\\.ts$": "ts-jest"
|
||||
},moduleNameMapper: {
|
||||
...aliases,
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user