Skip to content

Commit

Permalink
Fix broken tests by adding moduleNameMapper to jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
paranerd committed Apr 21, 2023
1 parent 51be671 commit 18b8bd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"preset": "ts-jest",
"testEnvironment": "node",
"modulePathIgnorePatterns": ["<rootDir>/dist/", "<rootDir>/build/"],
"testPathIgnorePatterns": ["<rootDir>/dist/", "<rootDir>/build/"]
"testPathIgnorePatterns": ["<rootDir>/dist/", "<rootDir>/build/"],
"moduleNameMapper": {
"(.+)\\.js": "$1"
}
}

0 comments on commit 18b8bd0

Please sign in to comment.