Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "autoStub"

Index

Functions

Functions

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()
    
    })
    })

    Parameters

    • Default value config: AutoStubLocalConfig = {}

      local settings allow you to override any global settings for a particular instance

    Returns void

Generated using TypeDoc