supabase icon indicating copy to clipboard operation
supabase copied to clipboard

refactor(docs): type spec parsing + testing setup

Open charislam opened this issue 1 year ago • 2 comments

This produces more complete type information (unions, following type alias refererences that aren't successfully dereferenced at an earlier stage, etc.), in a format that is much easier to query from UI components. Also adds a snapshot test for easier future iteration.

I had a lot of trouble configuring Jest for the snapshot tests (something to do with imports and compile targets), and there are zero other tests in this directory right now, so I just tore out the test setup and replaced it with Vitest. Much faster!

charislam avatar Jul 11 '24 16:07 charislam

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2024 2:38pm
5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
design-system ⬜️ Ignored (Inspect) Visit Preview Jul 17, 2024 2:38pm
studio ⬜️ Ignored (Inspect) Visit Preview Jul 17, 2024 2:38pm
studio-self-hosted ⬜️ Ignored (Inspect) Visit Preview Jul 17, 2024 2:38pm
studio-staging ⬜️ Ignored (Inspect) Visit Preview Jul 17, 2024 2:38pm
zone-www-dot-com ⬜️ Ignored (Inspect) Visit Preview Jul 17, 2024 2:38pm

vercel[bot] avatar Jul 11 '24 16:07 vercel[bot]

No changes detected in supabase directory. This pull request has been ignored for the connected project xguihxuzqibwxjnimxev due to its connection settings. Go to Project Integrations Settings ↗︎ in order to change this behavior.


Branching Preview Branches by Supabase. Learn more about Supabase for Git ↗︎.

supabase[bot] avatar Jul 11 '24 16:07 supabase[bot]