Function Before

  • Define a hook that should be executed before Gherkin-derived steps in each test.

    Parameters

    Returns void

    Before(async () => {
    // do stuff here
    })
  • Define a hook that should be executed before Gherkin-derived steps in each test.

    Parameters

    Returns void

    Before({ name: 'Provision resources', tagFilter: '@uses-resources' }, async () => {
    // do stuff here
    })