This function must be called in order to begin stubbing/recording.
The function can be called from anywhere inside a Cypress hook
import { autoStub } from'cypress-autostub'
describe('Some Feature', () => {
beforeEach(() => {
// Put it in a before each
autoStub()
})
it('should do the thing', () => {
// Or even at the test level
autoStub()
})
})
This function must be called in order to begin stubbing/recording. The function can be called from anywhere inside a Cypress hook
import { autoStub } from 'cypress-autostub' describe('Some Feature', () => { beforeEach(() => { // Put it in a before each autoStub() }) it('should do the thing', () => { // Or even at the test level autoStub() }) })