Socket
Socket
Sign inDemoInstall

@testdeck/jest

Package Overview
Dependencies
1
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @testdeck/jest

Object oriented testing for the Jest test framework


Version published
Weekly downloads
3.4K
decreased by-8.87%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

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

Readme

Source

@testdeck/jest

Get it on NPM Downloads per Week Issues Pull Requests Apache 2.0 License

Jest tests in OOP style!

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.

Keywords

FAQs

Last updated on 18 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc