Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow override for mock handlers to be a function #1375

Merged

Conversation

AffeJonsson
Copy link
Contributor

Status

READY

Description

Fixes #1329
Adds the ability to pass a function into mock handlers as override

Steps to Test or Reproduce

yarn generate with a config that has mock: true
check mock handlers, the override parameter should be able to be a function as well

packages/mock/src/msw/index.ts Outdated Show resolved Hide resolved
@melloware melloware added this to the 6.29.0 milestone May 15, 2024
@melloware melloware added the mock Related to mock generation label May 15, 2024
@melloware melloware merged commit bc3d277 into orval-labs:master May 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mock Related to mock generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSW: overrideResponse can be a function
2 participants