0.1.1 • Published 3 years ago

spect-runner v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Build Status

Spect Runner

Description

A tiny test runner

Usage

[sudo] npm i -g spect-runner

After the installation put a test on your file placed anywhere:

const assert = require('assert');

test('Describe your test here', () => {
  assert.strictEqual(2 + 2, 4);
});

or you can use expect:

test('Describe your test here', () => {
  expect(2 + 2).toStrictEqual(4);
});

And run the tool:

spect-runner ./test/your-test-file.js

See a test file from the repository for more tests example.

Inspiration

The test runner is inspired by tests of https://github.com/paulirish/source-map-js/blob/cdt/test/run-tests.js.

0.1.1

3 years ago

0.1.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago