4.0.0 • Published 4 years ago
tapeless v4.0.0
about
A test harness that is smaller than tape and can be used in-browser directly.
setup
Download from the npm registry for Node.js:
# Add to package.json
npm install tapeless --save-dev
Source from an import map for Deno:
{
"imports": {
"likewise": "https://cdn.jsdelivr.net/npm/likewise@latest/main.js",
"tapeling": "https://cdn.jsdelivr.net/npm/tapeling@latest/main.js"
}
}
usage
The assertions provided are ok()
and equal()
plus counterparts. Add kpow and cutaway to run browser-side. For example, given a test script like:
// Sample test.js
import "cutaway"
import { assert, report } from "tapeless"
const { equal: same, ok } = assert
const sample = { a: "a", b: "b" }
const id = (input = sample) => input
same.test(typeof id, "function")
ok.test(sample)
same.test(sample, id())
report()
Bundling along the lines of:
npx -p kpow -p rollup -p @rollup/plugin-node-resolve -c \
'rollup -p node-resolve -f iife test.js | kpow'
Produces the following report:
see also
2.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
4.0.0
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.5
5 years ago
0.0.6
5 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
8 years ago
0.0.1
8 years ago
0.0.0
8 years ago