You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of #172, which contains lots of explanatory
writing to make this PR more approachable by those new to Pretender. Check that Issue out!
This is a followup Issue to #172. Now that Localstorage recording is working, it's time to get this feature ready for more use cases.
If it isn't already, please turn the code used to store responses in Localstorage into more of an adapter-style interface. Know the future outputs here will be handy. Off the top of my head I can think of:
LocalStore: record responses and stash them in localstorage so they persist between requests
StringStore: emit to some location (console?) the code a developer would have written to hand-craft this with instructions about where to this function
FileStore: with a tool like Chrome Devtools Workspaces, write these files into some configurable location for a user.
You don't need to craft the latter two adapters, just keep these use cases (and others presented in the comments) in mind as you design an adapter interface and convert the localstorage code to use it!
A PR that completes this Issue will:
not change existing localstorage behavior
refactor localstorage into an adapter whose interface can be used to solve other recording/playback solutions
The text was updated successfully, but these errors were encountered:
Part of #172, which contains lots of explanatory
writing to make this PR more approachable by those new to Pretender. Check that Issue out!
This is a followup Issue to #172. Now that Localstorage recording is working, it's time to get this feature ready for more use cases.
If it isn't already, please turn the code used to store responses in Localstorage into more of an adapter-style interface. Know the future outputs here will be handy. Off the top of my head I can think of:
You don't need to craft the latter two adapters, just keep these use cases (and others presented in the comments) in mind as you design an adapter interface and convert the localstorage code to use it!
A PR that completes this Issue will:
The text was updated successfully, but these errors were encountered: