Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 494252a

Browse files
committed
test: remove conn error snapshot
Connection error reason is pretty darn unreliable--we just want to know whether it error'd or not.
1 parent c5524a7 commit 494252a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

test/__snapshots__/index.test.ts.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,6 @@ Object {
626626
}
627627
`;
628628

629-
exports[`connection errors should work the same with throwOnError 1`] = `[FetchError: request to http://foo.invalid/user?select=* failed, reason: getaddrinfo ENOTFOUND foo.invalid]`;
630-
631629
exports[`don't mutate PostgrestClient.headers 1`] = `null`;
632630

633631
exports[`embedded filters embedded eq 1`] = `

test/basic.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ test('connection errors should work the same with throwOnError', async () => {
127127
.from('user')
128128
.select()
129129
.throwOnError()
130-
.then(undefined, (error) => {
131-
expect(error).toMatchSnapshot()
130+
.then(undefined, () => {
132131
isErrorCaught = true
133132
})
134133
expect(isErrorCaught).toBe(true)

0 commit comments

Comments
 (0)