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

0.10.2 • Public • Published

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');
runner.require('./bar/*.hay.js');

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

Package Sidebar

Install

npm i @hayspec/runner

Weekly Downloads

37

Version

0.10.2

License

MIT

Unpacked Size

19.8 kB

Total Files

40

Last publish

Collaborators

  • xpepermint