Skip to content

Commit

Permalink
Add module name mapper to jest config
Browse files Browse the repository at this point in the history
Add csv-parse/sync to module mapper
Ref: adaltas/node-csv#309 (comment)

Signed-off-by: shahulsonhal <shahulsonhal@gmail.com>
  • Loading branch information
shahulsonhal authored and akhilerm committed Nov 8, 2022
1 parent 6230e14 commit 6a56498
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ module.exports = {
transform: {
'^.+\\.ts$': 'ts-jest'
},
moduleNameMapper: {
"^csv-parse/sync": "<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs"
},
verbose: true
}

0 comments on commit 6a56498

Please sign in to comment.