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 3a4b0ad commit 904ec85Copy full SHA for 904ec85
packages/react/tests/useQuery.test.tsx
@@ -106,7 +106,7 @@ describe('useQuery', () => {
106
107
await waitFor(
108
async () => {
109
- expect(result.current.error).toEqual(Error('PowerSync failed to fetch data: some error'));
+ expect(result.current.error?.message).equal('PowerSync failed to fetch data: some error');
110
},
111
{ timeout: 100 }
112
);
@@ -131,7 +131,7 @@ describe('useQuery', () => {
131
132
133
134
+ expect(result.current.error?.message).equals('PowerSync failed to fetch data: some error');
135
136
137
0 commit comments