Skip to content

[RFC] Record / Replay modes#7

Open
msutkowski wants to merge 2 commits intomainfrom
recorder
Open

[RFC] Record / Replay modes#7
msutkowski wants to merge 2 commits intomainfrom
recorder

Conversation

@msutkowski
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

2 participants