JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5868
  • Score
    100M100P100Q128139F
  • License Apache-2.0

Object oriented testing for the Jest test framework

Package Exports

  • @testdeck/jest

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@testdeck/jest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@testdeck/jest

Get it on NPM Downloads per Week Issues Pull Requests Travis Build Status Appveyor Build Status Apache 2.0 License

Jest testing with style - the OOP way

import { suite, test } from "@testdeck/jest";

@suite
class Hello {
  
  @test
  world() {
    expect(false).toBe(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/jest jest @testdeck/jest

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-jest-seed.git

Additional Information

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