Closed juliusmarminge closed 7 months ago
Latest commit: 3eac0e536fd5c83f1be97730d84a97780f040d59
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
docs-uploadthing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 24, 2024 11:40am |
UPDATE: I think I got a quite clean solution now.
Tests consuming the db
context will now prepend UTApiMocks to the msw listeners with that db instance. No need to provide any fetch overrides etc etc, just destruct the db from the context and all should work automatically
🚀
trying to get rid of our
mockExternalRequest(db)
in favor of only using msw to describe all the external requests, no matter if the method accepts a fetch override or not.it's going.... well not so good 😓