4.0.0 • Published 3 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
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
4.0.0
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.5
4 years ago
0.0.6
4 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
7 years ago
0.0.1
7 years ago
0.0.0
7 years ago