Skip to content

Commit 69afff9

Browse files
authored
Merge pull request #557 from supabase/avallete/chore-increase-runtime-tests-coverage
chore: increase runtime tests coverage
2 parents 981fa4d + f66f056 commit 69afff9

File tree

3 files changed

+1717
-19
lines changed

3 files changed

+1717
-19
lines changed

test/index.test-d.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -113,25 +113,6 @@ const postgrest = new PostgrestClient<Database>(REST_URL)
113113
expectType<string>(data.baz)
114114
}
115115

116-
// typecasting and aggregate functions
117-
{
118-
const { data, error } = await postgrest
119-
.from('messages')
120-
.select(
121-
'message, users.count(), casted_message:message::int4, casted_count:users.count()::text'
122-
)
123-
.single()
124-
if (error) {
125-
throw new Error(error.message)
126-
}
127-
expectType<{
128-
message: string | null
129-
count: number
130-
casted_message: number
131-
casted_count: string
132-
}>(data)
133-
}
134-
135116
// rpc return type
136117
{
137118
const { data, error } = await postgrest.rpc('get_status')

test/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import './basic'
2+
import './relationships'
23
import './filters'
34
import './resource-embedding'
45
import './transforms'

0 commit comments

Comments
 (0)