tinybench - v4.0.1
    Preparing search index...

    Interface FnOptions

    the task function options

    interface FnOptions {
        afterAll?: FnHook;
        afterEach?: FnHook;
        beforeAll?: FnHook;
        beforeEach?: FnHook;
    }
    Index

    Properties

    afterAll?: FnHook

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

    afterEach?: FnHook

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

    beforeAll?: FnHook

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

    beforeEach?: FnHook

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