@mdwrk/testing
v1.0.3
Published
Shared browser and React test helpers for MdWrk packages.
Maintainers
Readme
@mdwrk/testing
Shared test utilities
This package provides lightweight browser and timing helpers reused by MdWrk package tests.
Why
Use it when you need small shared test utilities without dragging app-specific test setup into library packages.
What
- In-memory storage helpers.
- A
matchMediastub for browser-like test environments. - Timing helpers shared across package test suites.
Installation
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install -D @mdwrk/testingUsage
import { createMemoryStorage, installMatchMediaStub } from "@mdwrk/testing";
const storage = createMemoryStorage({ draft: "# MdWrk" });
const restore = installMatchMediaStub(false);
restore();Related
- Packages index - family and package navigation
- Root README - repo overview
