diff --git a/jest.config.js b/jest.config.js index f9a5c04e..334791e9 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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"), }, };