generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
Studio Core TeamOpened by a member of the Studio core teamOpened by a member of the Studio core teamType: Feature RequestType: MaintenanceDevOps, maintenance, admin works to do with the repositoryDevOps, maintenance, admin works to do with the repositoryType: Refactor
Milestone
Description
Similar requests
- I have searched and found no existing similar requests
How are you using Studio?
No response
What problems are you trying to solve?
Mocking fetch has its merit, but mocking them in integration tests make it more difficult to write test, also it requires us exposing logic that we want to keep hidden just so we can mock them. Read more about this in this article.
Describe the solution you would like to see implemented
Use msw. Read more at:
- https://kentcdodds.com/blog/stop-mocking-fetch
- https://www.wwt.com/article/using-mock-service-worker-to-improve-jest-unit-tests
- https://mswjs.io/docs/getting-started/integrate/node
Describe alternatives you have considered
No response
Documentation, Design, Adoption, Migration Strategy
No response
Contribution
- I would like to work on this feature
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Studio Core TeamOpened by a member of the Studio core teamOpened by a member of the Studio core teamType: Feature RequestType: MaintenanceDevOps, maintenance, admin works to do with the repositoryDevOps, maintenance, admin works to do with the repositoryType: Refactor