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

[RFC] Record / Replay modes #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

[RFC] Record / Replay modes #7

wants to merge 2 commits into from

Conversation

msutkowski
Copy link
Member

@msutkowski msutkowski commented Sep 25, 2021

Overview

This is a basic implementation of a record mode, that also has a replay feature. When you set the mode to record, it'll monitor any request that happens in the application. When you're done recording, you can replay, which will generate mocked handlers for each request that happened, along with the original response. The replay part needs work so that we're actually handling json/text responses, errors, etc.

After this, we'd ideally introduce the ability to generate handler code that could be output for copy/paste.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 25, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit dbfa0b9:

Sandbox Source
msw-toolbar-template Configuration

@MarceloAlves
Copy link
Member

👏 👏 👏 👏

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.

None yet

2 participants