Node TAP
    Preparing search index...

    Variable before

    before: (fn: () => any) => void

    Type Declaration

      • (fn: () => any): void
      • Just run the supplied function right away, but do not run any child tests until it has completed.

        This is handy when some setup may require asynchronous actions, and tests should wait until after it completes.

        Parameters

        • fn: () => any

        Returns void