@mochiapp/runner
v0.0.2
Published
A test runner used for Mochi modules.
Downloads
4
Readme
@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...