Skip to content

test(postgrest-typegen): cover the interval to string mapping - #235

Merged
spydon merged 1 commit into
mainfrom
lukasklingsbo/sdk-1972-interval-test
Sep 28, 2026
Merged

spydon merged 1 commit into
mainfrom
lukasklingsbo/sdk-1972-interval-test

Conversation

@spydon

@spydon spydon commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Closes SDK-1972 together with the matching removal in supabase/postgres-meta#1155.

postgres-meta's test/types.test.ts asserted that pgTypeToTsType maps interval to string through a direct import of @supabase/postgrest-typegen. After postgres-meta#1155 that package is no longer one of its declared dependencies (it depends on @supabase/typegen, which pins postgrest-typegen), so the import only resolved through npm hoisting. The case moves here, next to the generator it tests, and postgres-meta drops the import.

No source change. bun test, check-types and format-and-lint pass.

postgres-meta carried this case in its own suite through a direct import
of pgTypeToTsType, which it no longer declares as a dependency; the
generator's mapping belongs with the generator's tests.
@spydon
spydon requested a review from a team as a code owner September 28, 2026 11:43
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 6f7eeac9-bf01-42db-82f9-df2b595acb5c

📥 Commits

Reviewing files that changed from the base of the PR and between 8b5fcbf and 0e92071.

📒 Files selected for processing (1)
  • packages/postgrest-typegen/test/generation/typescript.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@spydon
spydon merged commit 75071cd into main Sep 28, 2026
4 checks passed
@spydon
spydon deleted the lukasklingsbo/sdk-1972-interval-test branch September 28, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants