fix test case failing with react error and update api reports

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2024-06-19 09:53:35 -04:00
parent 8eb3033f70
commit afc413d5c0
2 changed files with 15 additions and 1 deletions
@@ -77,7 +77,10 @@ describe('<ErrorBoundary/>', () => {
/^The above error occurred in the <Bomb> component:/,
),
expect.stringMatching(/^ErrorBoundary/),
expect.stringMatching(/Warning: findDOMNode/), // React warning, unfortunate but currently true
// React 18.3.0 added error messages for findDOMNode deprecation, https://github.com/facebook/react/commit/c3b283964108b0e8dbcf1f9eb2e7e67815e39dfb.
expect.stringContaining(
'Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node%s',
),
]);
expect(error.length).toEqual(5);
});
+11
View File
@@ -14,6 +14,7 @@ Options:
Commands:
api-reports [options] [paths...]
type-deps
peer-deps [options]
generate-catalog-info [options]
knip-reports [options] [paths...]
package [command]
@@ -156,6 +157,16 @@ Options:
-h, --help
```
### `backstage-repo-tools peer-deps`
```
Usage: backstage-repo-tools peer-deps [options]
Options:
--fix
-h, --help
```
### `backstage-repo-tools repo`
```