Repository navigation
fix(docs): scope js-libs-update vitest run and make tests self-contained - #46737
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR establishes a test fixture provisioning system by creating a Vitest global setup function that copies the repo-root ChangesTest Fixture Setup and Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
0ab233a to
52bd05b
Compare
Braintrust eval report
|
The
Update JS Client Libraries Docsworkflow's "Refresh reference-content snapshot" step fails becausenpx vitest run --update scripts/build-reference-content.test.tsis treated as a filter, not a restriction, under Vitest 4, so all docs testsrun.
CodeSample.test.tsthen fails with ENOENT onapps/docs/examples/_internal/fixtures/*because the workflow bypasses thepretestnpm hook that runscodegen:examples.This is a regression of #44943 (commit 28ef62c), reintroduced by #46163 when the snapshot step was renamed and rewritten back to the file-path form.
Fixes:
--dir scriptsso only the snapshot test runs.codegen:examples, sonpx vitest,pnpm test:local, and IDE single-test runs no longer depend on thepretestlifecycle hook being triggered first.Summary by CodeRabbit