Skip to content

Instantly share code, notes, and snippets.

@jthodge
Last active February 1, 2022 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthodge/bcf77b7b7a2d3cfcf29bd1db867f366f to your computer and use it in GitHub Desktop.
Save jthodge/bcf77b7b7a2d3cfcf29bd1db867f366f to your computer and use it in GitHub Desktop.
Cypress config to prevent Chrome's "Aw Snap" OoM error when running e2e tests locally
{
"baseUrl": "http://localhost:3000",
"chromeWebSecurity": false,
"projectId": "$PROJECT_ID",
"viewportWidth": 1920,
"viewportHeight": 1080,
"defaultCommandTimeout": 10000,
"retries": {
"runMode": 2,
"openMode": 0
},
"numTestsKeptInMemory": 0
}
@jthodge
Copy link
Author

jthodge commented Feb 1, 2022

This is the complete configuration that I use, but the solution to preventing Chrome's OoM errors when running Cypress locally is the final attribute:

{
  "numTestsKeptInMemory": 0
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment