We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819390e commit 9852028Copy full SHA for 9852028
src/reactjs/tests/useQueries.test.tsx
@@ -1058,13 +1058,14 @@ describe('useQueries', () => {
1058
1059
await sleep(30)
1060
1061
- expect(results.length).toBe(3)
1062
expect(results[0]).toMatchObject([
1063
{ data: undefined },
1064
1065
])
1066
- expect(results[1]).toMatchObject([{ data: 1 }, { data: undefined }])
1067
- expect(results[2]).toMatchObject([{ data: 1 }, { data: 2 }])
+ expect(results[results.length - 1]).toMatchObject([
+ { data: 1 },
+ { data: 2 },
1068
+ ])
1069
})
1070
1071
it('should throw if the context is necessary and is not passed to useQueries', async () => {
0 commit comments