Exactly the same as cypress cy.server
whitelist function.
Allows users to build a whitelist per request at a local level.
A whitelist in this context does not get stubbed/recorded by cy.route
Use this to keep your mock files smaller by whitelisting non essential requests like translations, and other static assets
This allows you to specify a whitelist for a particular spec file, for example you may want to ignore GraphQL requests on a particular page, but mock all other REST fetches
autoStub({
whitelist: (xhr => {
if (xhr.url.includes('graphql')) {
return true;
}
})
})
Generated using TypeDoc
If true we will begin overwriting any existing mock files for the current spec+test