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

Separate mock files #29

Closed
wants to merge 2 commits into from
Closed

Separate mock files #29

wants to merge 2 commits into from

Conversation

MayGo
Copy link

@MayGo MayGo commented Jan 27, 2020

If json files are getting too large or more granularity is needed. Then specify seperateMockFiles in cypress.json:

{
  "autorecord": {
    "seperateMockFiles": true
  }
}

For every unique request there will be a json file generated in /cypress/fixtures folder. Requests are put into subfolders by request domain name. Every GET request with same pathname and query is considered same. For every other method types, request body and response objects are hashed. If same object always gets same hash.

This pull request was closed.
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

1 participant