Merge pull request #10336 from backstage/dependabot/npm_and_yarn/react-use-17.3.2

build(deps): bump react-use from 17.2.4 to 17.3.2
This commit is contained in:
Fredrik Adelöw
2022-03-21 14:21:32 +01:00
committed by GitHub
3 changed files with 9 additions and 30 deletions
@@ -48,14 +48,13 @@ describe('wrapInTestApp', () => {
await Promise.resolve();
});
expect(error).toEqual([
expect.stringMatching(
/^Warning: An update to %s inside a test was not wrapped in act\(...\)/,
expect(
error.some(e =>
e.includes(
'Warning: An update to %s inside a test was not wrapped in act(...)',
),
),
expect.stringMatching(
/^Warning: An update to %s inside a test was not wrapped in act\(...\)/,
),
]);
).toBeTruthy();
});
it('should render a component in a test app without warning about missing act()', async () => {