Détail du package

@testdeck/mocha

testdeck76.2kApache-2.00.3.3

Object oriented testing for the Mocha test framework

test, testing, mocha, typescript

readme

Get it on NPM License Build Status Coverage Quality Gate Status Issues Pull Requests

@testdeck/mocha

Mocha tests in OOP style!

import { suite, test } from "@testdeck/mocha";
import { expect } from 'chai';

@suite
class Hello {

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

With support for

  • test suite inheritance by either extension or mixins
  • individual naming of both suites and tests
  • parameterised tests

and more...

If you are looking for other test framework support, please see the following packages

Installation

npm install --save-dev @types/mocha mocha @testdeck/mocha

Additional dependencies need to be installed, unless you use the seed below or follow the instructions in the setup guide for which a link has been provided below.

Getting Started

To get you started, a seed has been provided that can help you with setting up your project.

git clone https://github.com/testdeck/testdeck-mocha-seed.git

Additional Information

You can find a lot more information in the official documentation, especially in the setup guide.

changelog

v0.3.3 (unreleased)

:house: Internal

:memo: Documentation

v0.3.2 (2022-11-10)

:bug: Bug Fix

  • di-typedi
    • #337 testdeck/di-typedi does not depend on testdeck/core as a runtime dependency (@silkentrance)

v0.3.1 (2022-11-07)

:house: Internal

:bug: Bug Fix

Committers: 1

v0.3.0 (2022-10-28)

:rocket: New Feature

:memo: Documentation

  • core, di-typedi, jasmine, jest, mocha, vitest

Committers: 1

v0.2.2 (2022-10-28)

:house: Internal

  • fix internal dependency version mismatch
  • add missing tags to repo (v0.2.0, v0.2.1)
  • add missing changelog entries (v0.2.1, v0.2.2)

v0.2.1 (2022-09-08, incomplete)

:bug: Bug Fix

  • mocha
    • #294 fix typings
    • #290 fix watcher to use new mocha --options flag and .mocharc.json instead

v0.2.0 (internal)

  • Fix null this in jest after methods
  • Reorganize typings, uses re-exports instead module.exports =
  • Mocha now export a context symbol that can be used to access the underlying mocha context

v0.1.0 (2020-05-04)

:boom: Breaking Change

:memo: Documentation

Committers: 1

v0.0.10 (2020-04-19)

:bug: Bug Fix

  • core
    • #269 fix gh-254: use Object.getOwnPropertyDescriptor instead of accessing the fields directly (@silkentrance)

Committers: 1

v0.0.9 (2020-04-17)

:house: Internal

Committers: 1

v0.0.8 (2020-04-17)

:bug: Bug Fix

  • core, jasmine, jest

Committers: 1

v0.0.7 (2020-04-16)

:house: Internal

:bug: Bug Fix

:rocket: New Feature

:memo: Documentation

Committers: 2

v0.0.6 (2019-04-09)

:house: Internal

:bug: Bug Fix

  • @testdeck/core, @testdeck/di-typedi
  • @testdeck/di-typedi
  • @testdeck/core, @testdeck/di-typedi, @testdeck/jasmine, @testdeck/jest, @testdeck/mocha

:memo: Documentation

Committers: 1

v0.0.5 (2019-04-07)

:bug: Bug Fixes

Committers: 1

v0.0.4 (2019-04-05)

:memo: Documentation

Committers: 2

v0.0.3 - v0.0.1

:boom: Breaking Change

  • #181 Major rewrite (@pana-cc)
  • move TypeDI support to separate package

:bug: Bug Fixes

:rocket: New Feature

  • add support for jasmine
  • add support for jest

:house: Internal

  • switch to lerna

Committers: 2

Pre v0.0.1: mocha-typescript

  • no changelog information available