Interface FnOptions

the task function options

interface FnOptions {
    afterAll?: ((this: Task) => void | Promise<void>);
    afterEach?: ((this: Task) => void | Promise<void>);
    beforeAll?: ((this: Task) => void | Promise<void>);
    beforeEach?: ((this: Task) => void | Promise<void>);
}

Properties

afterAll?: ((this: Task) => void | Promise<void>)

An optional function that is run after all iterations of this task end

afterEach?: ((this: Task) => void | Promise<void>)

An optional function that is run after each iteration of this task

beforeAll?: ((this: Task) => void | Promise<void>)

An optional function that is run before iterations of this task begin

beforeEach?: ((this: Task) => void | Promise<void>)

An optional function that is run before each iteration of this task