cli: fix react-dom/client check in Jest config
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/cli': patch
|
||||
---
|
||||
|
||||
The check for `react-dom/client` in the Jest configuration will now properly always run from the target directory.
|
||||
@@ -28,7 +28,9 @@ const envOptions = {
|
||||
};
|
||||
|
||||
try {
|
||||
require.resolve('react-dom/client');
|
||||
require.resolve('react-dom/client', {
|
||||
paths: [paths.targetRoot],
|
||||
});
|
||||
process.env.HAS_REACT_DOM_CLIENT = true;
|
||||
} catch {
|
||||
/* ignored */
|
||||
|
||||
Reference in New Issue
Block a user