variable hooks

Hooks for every test in the run, in every module: QUnit.hooks for Node.js and Deno. A global beforeEach runs before any module's, and a global afterEach after all of them. Each receives (assert, { context }), with the test's context as this.

Methods

Usage

import { hooks } from ".";