Skip to content

tests: scope MSW server and db reset to the one spec that uses them - #3335

Merged
david-crespo merged 1 commit into
mainfrom
scope-msw-db-reset
Aug 18, 2026
Merged

tests: scope MSW server and db reset to the one spec that uses them#3335
david-crespo merged 1 commit into
mainfrom
scope-msw-db-reset

Conversation

@david-crespo

@david-crespo david-crespo commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

We were curious why node tests would take longer than browser tests. Turns out we were setting up and tearing down the mock API and resetting the database after every unit test. This PR moves that out of global setup into the one file that actually needs it.

Before

npm test run -- ip

image

After

npm test run -- ip

image

@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Aug 18, 2026 9:12pm

Request Review

@david-crespo
david-crespo enabled auto-merge (squash) August 18, 2026 21:12
@david-crespo
david-crespo merged commit a842fbe into main Aug 18, 2026
7 checks passed
@david-crespo
david-crespo deleted the scope-msw-db-reset branch August 18, 2026 21:23
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.

1 participant