Skip to content

Commit

Permalink
Add comments explaining configuration options for Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
rhystmills committed Jan 22, 2025
1 parent be60cb7 commit 44327e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ module.exports = {
},
testEnvironment: "jest-environment-node",
snapshotFormat: {
// Use pre v28 Jest snapshot defaults, to prevent incompatible snapshots
escapeString: true,
printBasicPrototype: true,
},
moduleNameMapper: {
// Force module uuid to resolve with the CJS entry point, because Jest does not support package.json.exports. See https://github.com/uuidjs/uuid/issues/451
"^uuid$": require.resolve("uuid"),
},
};

0 comments on commit 44327e5

Please sign in to comment.