Remix
Remix
remix/test · FunctionView Source

beforeAll

Summary

Registers a hook that runs once before all tests in the current suite (or globally if called outside a describe). Multiple calls are chained in registration order.

Signature

function beforeAll(fn: () => void | Promise<void>): void;

Parameters

fn

The setup function to run once before all tests in the suite.