Home

Awesome

♨️ Speca License NPM version Build Status Coverage Status

Writes 📼Supertape tests for you using 🐊Putout. Here is how it looks like:

image

Made from prototype.

Install

npm i speca -g

Usage

speca sum.js
// creates a file: sum.spec.js

Input sum.js:

export const sum = (a, b) => a + b;

Output sum.spec.js:

import {test} from 'supertape';
import {sum} from './sum.js';

test('name: sum', (t) => {
    const result = sum('a', 'b');
    const expected = '';
    
    t.equal(result, expected);
    t.end();
});

License

MIT