npm.io
2.1.3 • Published 3 weeks ago

@biorate/mocha

Licence
MIT
Version
2.1.3
Deps
4
Size
70 kB
Vulns
0
Weekly
0
Stars
5

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:

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.
Release History

See the CHANGELOG

License

MIT

Copyright (c) 2021-present Leonid Levkin (llevkin)

Keywords