Skip to content

Commit 64a6c0e

Browse files
committed
fix(jest): add module name mapper to match tsconfig
1 parent c901254 commit 64a6c0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/jest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ export const jestConfig: JestConfigWithTsJest = {
55
preset: 'ts-jest',
66
testEnvironment: 'node',
77
testRegex: '(\\.|/)(test|spec)\\.[jt]sx?$',
8+
moduleNameMapper: {
9+
'^@/(.*)$': '<rootDir>/$1'
10+
}
811
};

0 commit comments

Comments
 (0)