Merge pull request #7356 from backstage/dependabot/npm_and_yarn/testing-library/react-hooks-7.0.2
build(deps): bump @testing-library/react-hooks from 3.4.2 to 7.0.2
This commit is contained in:
@@ -359,7 +359,9 @@ describe('useReaderState', () => {
|
||||
contentReload: expect.any(Function),
|
||||
});
|
||||
|
||||
await waitForValueToChange(() => result.current.state);
|
||||
await waitForValueToChange(() => result.current.state, {
|
||||
timeout: 2000,
|
||||
});
|
||||
|
||||
expect(result.current).toEqual({
|
||||
state: 'INITIAL_BUILD',
|
||||
@@ -496,7 +498,9 @@ describe('useReaderState', () => {
|
||||
});
|
||||
|
||||
// the new content is loaded
|
||||
await waitForValueToChange(() => result.current.state);
|
||||
await waitForValueToChange(() => result.current.state, {
|
||||
timeout: 2000,
|
||||
});
|
||||
expect(result.current).toEqual({
|
||||
state: 'CONTENT_FRESH',
|
||||
path: '/example',
|
||||
@@ -576,7 +580,9 @@ describe('useReaderState', () => {
|
||||
contentReload: expect.any(Function),
|
||||
});
|
||||
|
||||
await waitForValueToChange(() => result.current.state);
|
||||
await waitForValueToChange(() => result.current.state, {
|
||||
timeout: 2000,
|
||||
});
|
||||
expect(result.current).toEqual({
|
||||
state: 'CONTENT_FRESH',
|
||||
path: '/new',
|
||||
|
||||
Reference in New Issue
Block a user