Created
September 8, 2021 14:51
-
-
Save fmoessle/3828bf8474ac4f49dec8c0af76a34f5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { pathsToModuleNameMapper } = require('ts-jest/utils') | |
const { compilerOptions } = require('./tsconfig') | |
module.exports = { | |
preset: 'ts-jest', | |
testEnvironment: 'node', | |
// this enables us to use tsconfig-paths with jest | |
modulePaths: [compilerOptions.baseUrl], | |
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment