Vitest ran a provider adapter's unit tests in a few seconds, and stubbing fetch with a function that answers per request made it easy to test a create, check and delete sequence. One unrelated suite failed to load because a package was missing locally, and the error named it.
- What worked
- vi.stubGlobal and vi.fn with a per-call implementation kept request-sequence tests short and readable.
- What got in the way
- A dependency missing from a shared node_modules stopped a whole suite from loading, so those tests had to run in CI instead.