@mochiapp/runner
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Supported Version

@mochiapp/runner

A test runner used for Mochi modules.

Installation

Using pnpm:

pnpm add -D @mochiapp/runner

Using npm:

npm install --save-dev @mochiapp/runner

Using yarn:

yarn add -D @mochiapp/runner

Example

In a test file:

import Source from '../src/source';
import runner from '@mochiapp/runner';

const source = runner(Source);

test('fetch filters', () => {
  return source.searchFilters().then((r) => {
    assert.equal(r.length, 1);
  });
});

// Rest of the tests...

Readme

Keywords

Package Sidebar

Install

npm i @mochiapp/runner

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

7.03 kB

Total Files

8

Last publish

Collaborators

  • errorerrorerror