Tests runner for Hayspec framework.


2140.10.26 months ago3 years agoMinified + gzip package size for @hayspec/runner in KB


Build Status NPM Version

This package provides the logic for discovering and performing test files. It's included in the Hayspec CLI, but you can use it to run tests directly from your NodeJS application.

import { Spec } from '@hayspec/spec';
import { Runner } from '@hayspec/runner';

const runner = new Runner();
runner.require('./foo/**/*.test.js', '!./foo/**/foo.test.js');

const spec = new Spec();
runner.specs.forEach((folder, spec) => {
  spec.spec(filder, spec);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.