Skip to content

Commit

Permalink
fix(server): fix jest config to allow for subpath package
Browse files Browse the repository at this point in the history
  • Loading branch information
Falinor committed Oct 9, 2024
1 parent 7bf2b25 commit 42adeaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ const config: JestConfigWithTsJest = {
rootDir: '.',
roots: ['<rootDir>'],
moduleDirectories: ['node_modules', '<rootDir>'],
moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths),
moduleNameMapper: {
...pathsToModuleNameMapper(tsconfig.compilerOptions.paths),
'^@zerologementvacant/models/fixtures$':
'<rootDir>/node_modules/@zerologementvacant/models/dist/test/fixtures.js'
},
modulePathIgnorePatterns: [
'<rootDir>/dist/',
'<rootDir>/node_modules/',
Expand Down

0 comments on commit 42adeaa

Please sign in to comment.