# @mdwrk/testing
**Shared test utilities**
[](https://github.com/groupsum/markdown_workspace/blob/master/packages/shared/testing/README.md)
[](https://www.npmjs.com/package/@mdwrk/testing)
[](../../../package.json)
[](../../../LICENSE)
This package provides lightweight browser and timing helpers reused by MdWrk package tests.
This is a legacy bridge package in groupsum/markdown_workspace.
- Active maintenance moved to
groupsum/mdwrk. - Install compatibility remains on the same npm package name:
@mdwrk/testing. - Repository source of truth: https://github.com/groupsum/mdwrk/tree/master/packages/shared/testing
- Bridge releases from this repo emit an install-time deprecation warning so downstream users can migrate without an immediate package rename.
Use it when you need small shared test utilities without dragging app-specific test setup into library packages.
- In-memory storage helpers.
- A
matchMediastub for browser-like test environments. - Timing helpers shared across package test suites.
Node.js 20.x through 22.x, matching the workspace engine contract in the root package manifest.
npm install -D @mdwrk/testingimport { createMemoryStorage, installMatchMediaStub } from "@mdwrk/testing";
const storage = createMemoryStorage({ draft: "# MdWrk" });
const restore = installMatchMediaStub(false);
restore();- Packages index - family and package navigation
- Root README - repo overview