japa

  • Version 4.0.0
  • Published
  • 135 kB
  • 9 dependencies
  • MIT license

Install

npm i japa
yarn add japa
pnpm add japa

Overview

Lean test runner for Node.js

Index

Functions

function configure

configure: (options: Partial<IConfigureOptions>) => void;
  • Configure test runner

function failing

failing: typeof failing;
  • Create regression test

function group

group: (title: string, callback: (group: RunnerGroup) => void) => void;
  • Create a new test to group all test together

function only

only: (title: string, callback: ICallback<TestArgs>) => RunnerTest;
  • Only run the specified test

function runInCI

runInCI: (title: string, callback: ICallback<TestArgs>) => RunnerTest;
  • Create a test and run it only in the CI.

function skip

skip: (title: string, callback: ICallback<TestArgs>) => RunnerTest;
  • Create a test, and mark it as skipped. Skipped functions are never executed. However, their hooks are executed

function skipInCI

skipInCI: (title: string, callback: ICallback<TestArgs>) => RunnerTest;
  • Create a test, and mark it as skipped only when running in CI. Skipped functions are never executed. However, their hooks are executed.

function test

test: typeof test;
  • Create a new test

Namespaces

namespace failing

namespace failing {}
  • Nested only

function only

only: (title: string, callback: ICallback<TestArgs>) => RunnerTest;
  • Only run the specified test

Package Files (2)

Dependencies (9)

Dev Dependencies (16)

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/japa.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/japa)
  • HTML
    <a href="https://www.jsdocs.io/package/japa"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>