Skip to content

Conversation

@gustavocabral
Copy link

Goal

  • Capture and record requests that have non-serialisable responses.

Changes

  • call recordRequest through pretender's handledRequest on mock-provider/mirage.js.

Tests

  • TBD

this.server.pretender.handledRequest = (verb, path, request) => {
if (verb === 'DELETE') this.recordRequest(request);
return originalHandler(verb, path, request);
};
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

@gustavocabral gustavocabral Jan 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gustavocabral gustavocabral force-pushed the fix_record_not_serialized_request branch from d5a6f42 to 9f5f41f Compare January 9, 2020 18:41
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.

1 participant