T-man is a lightweight and flexible JavaScript test manager, designed as a refactored alternative to Mocha. It aims for direct compatibility with Mocha's testing style in most scenarios, offering similar `suite`, `test`, `before`, `after` hooks, and exclusive/inclusive test mechanisms. The current stable version is 1.10.0. While no explicit release cadence is documented, it maintains a stable API in its 1.x series. T-man supports various asynchronous testing patterns, including callbacks, Promises, Thunks, Generators, Rx.Observable, and async/await functions. It ships with TypeScript typings, facilitating its use in modern TypeScript projects. Its key differentiators lie in its minimalist design and adaptability, while still providing robust test management features comparable to more established frameworks.
npm install tmanVerified import paths — ran on the pinned version, not inferred.
Demonstrates synchronous and various asynchronous testing patterns (callback, promise, thunk, async/await) using T-man's `it` function, then executes them.
Thoroughly test existing Mocha suites after migrating to T-man to ensure all edge cases and configurations behave as expected. Consult T-man's documentation for any known incompatibilities.
Ensure asynchronous tests explicitly return a Promise, Thunk, or Rx.Observable, or call the provided `done` callback exactly once when the asynchronous operation completes or fails.
Review the asynchronous test logic to ensure it correctly signals completion (e.g., calling `done()`, returning a Promise, Thunk, or Observable). Increase the timeout if the operation genuinely takes longer using `tman.timeout(ms)` or `this.timeout(ms)` within a test.
For ES Modules/TypeScript, use `import tman from 'tman';`. For CommonJS, use `const tman = require('tman');`. Ensure you are not trying to destructure specific functions like `{ it }` from the top-level import.No dependency data recorded yet.