test-director is an ultra-lightweight unit test director specifically designed for Node.js environments. Currently stable at version 11.0.0, the package maintains a steady release cadence with frequent updates to Node.js support and internal tooling. Its key differentiators include its minimal footprint, strict adherence to ECMAScript Modules (ESM) as its primary distribution format since v6, and its compatibility with any assertion library that throws errors (such as Node.js `assert` or `snapshot-assertion`). It leverages JSDoc for providing TypeScript type definitions, emphasizing a JavaScript-first, standards-compliant approach to testing without imposing specific assertion frameworks or runners.
npm install test-directorVerified import paths — ran on the pinned version, not inferred.
Demonstrates synchronous, asynchronous, and nested tests, showcasing `TestDirector`'s basic API for defining and running tests with Node.js `assert` and `fetch`.
Migrate your project to use ECMAScript Modules (`import` syntax) or pin to a version prior to v6.0.0 if CommonJS is required.
Ensure your Node.js environment meets the minimum requirements for the installed `test-director` version. Upgrade Node.js if necessary.
Always use `import TestDirector from 'test-director';` to correctly import the class.
Update your build tooling (e.g., Webpack, Rollup) or Node.js environment to versions that fully support the `exports` field in `package.json`.
Refer to the package's `package.json` `exports` field or documentation for correct import paths. Avoid deep imports unless explicitly documented.
Configure your `tsconfig.json` with the recommended `compilerOptions` for optimal JSDoc type inference.
Change `const TestDirector = require('test-director');` to `import TestDirector from 'test-director';` and ensure your project is configured for ESM.Correct the import statement to use the default import: `import TestDirector from 'test-director';`.
Ensure the first argument passed to `tests.add()` is always a string describing the test.
Review the package's `package.json` `exports` field or README to identify the correct, officially exported path for the module you intend to import.
No dependency data recorded yet.