mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-01-08 04:56:46 -06:00
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
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,
|
|
},
|
|
}; |