# @biorate/mocha

> Mocha OOP tests based on @testdeck/core

Latest version **2.1.3** (published 2026-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @biorate/mocha
pnpm add @biorate/mocha
yarn add @biorate/mocha
bun add @biorate/mocha
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2026-10-15 |
| First published | 2023-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 69.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5 |
| Author | llevkin |
| Maintainers | llevkin |
| Keywords | mocha, OOP, parallel, @testdeck/core |

## Links

- npm: https://www.npmjs.com/package/@biorate/mocha
- Repository: https://github.com/biorate/core
- Homepage: https://biorate.github.io/core
- Issues: https://github.com/biorate/core/issues
- npm.io page: https://npm.io/package/@biorate/mocha

## Dependencies (4)

- [allure-mocha](https://npm.io/package/allure-mocha.md) 2.10.0
- [mocha.parallel](https://npm.io/package/mocha.parallel.md) 0.15.6
- [allure-js-commons](https://npm.io/package/allure-js-commons.md) 2.10.0
- [@biorate/run-context](https://npm.io/package/@biorate/run-context.md) 2.1.3

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 2.1.3 (latest) — 2026-10-15
- 2.1.2 — 2026-06-26
- 2.1.1 — 2026-06-26
- 2.1.0 — 2026-06-17
- 2.0.1 — 2026-05-16
- 2.0.0 — 2026-05-14
- 1.141.1 — 2026-04-20
- 1.141.0 — 2026-02-13
- 1.140.0 — 2026-02-10
- 1.139.0 — 2025-07-11
- 1.102.1 — 2025-02-28
- 1.102.0 — 2025-02-28
- 1.100.0 — 2025-02-26
- 1.64.0 — 2024-03-20
- 1.58.0 — 2024-02-05
- … 10 more at https://npm.io/package/@biorate/mocha/versions

## README

# Mocha

Mocha OOP tests based on @testdeck/core
This is a mocha OOP wrap based on https://www.npmjs.com/package/@testdeck/mocha package,
documentation should be almost the same

# Reason

- Some types fixes

# Feature

- Parallel tests execution in case of one class

### Examples:

```ts
import { suite, parallel, test } from '@biorate/mocha';
import { expect } from 'chai';

@suite
@parallel(true)
class Test {
  @test
  first() {
    expect(false).to.be.true;
  }

  @test
  second() {
    expect(false).to.be.true;
  }
}
```

### Learn

- Documentation can be found here - [docs](https://biorate.github.io/core/modules/mocha.html).

### Release History

See the [CHANGELOG](https://github.com/biorate/core/blob/master/packages/%40biorate/mocha/CHANGELOG.md)

### License

[MIT](https://github.com/biorate/core/blob/master/packages/%40biorate/mocha/LICENSE)

Copyright (c) 2021-present [Leonid Levkin (llevkin)](mailto:llevkin@yandex.ru)

---
_Source: https://npm.io/package/@biorate/mocha · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
