Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Commit

Permalink
chore: configure jest to map tsconfig paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aynh committed Sep 20, 2022
1 parent 5968fbe commit 2e689ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jest.config.cjs
@@ -1,3 +1,5 @@
const { pathsToModuleNameMapper } = require('ts-jest')

/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest/presets/default-esm',
Expand All @@ -12,4 +14,8 @@ module.exports = {
],
},
reporters: ['default', 'github-actions'],
moduleNameMapper: pathsToModuleNameMapper(
{ '~/*': ['./src/*'] },
{ prefix: '<rootDir>/' }
),
}

0 comments on commit 2e689ed

Please sign in to comment.