Skip to content

Commit 1b9338d

Browse files
committed
Remove outdated workaround
Since version 12, UUID no longer provides a CommonJS export: https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#1200-2025-09-05 (And I think Jest nowadays has sufficient support for package.json exports?)
1 parent b4221f8 commit 1b9338d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

jest.config.cjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ const customJestConfig = {
118118
// > Uncaught ReferenceError: MessageChannel is not defined
119119
// See https://github.com/facebook/react/issues/31827#issuecomment-2563094822
120120
"react-dom/server": "react-dom/server.edge",
121-
// 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
122-
uuid: require.resolve("uuid"),
123121
},
124122

125123
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader

0 commit comments

Comments
 (0)