speca
v3.0.0
Published
♨️ Generate TAP tests for your code
Downloads
13
Readme
♨️ Speca
Writes 📼Supertape tests for you using 🐊Putout. Here is how it looks like:
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