🧙 Wizard
Minimal Jest-like unit testing framework for Deno.
Features
describe
,it
,expect
functions like in Jest- colorful output with summary
- uses
Deno.test
Usage
// mod_test.ts
import { describe, it, expect, run } from 'https://deno.land/x/wizard/mod.ts'
describe('A test suite', () => {
it('should sum a + b', () => {
expect(1 + 2).toBe(3)
})
})
run() // Start test runner
Then run:
deno test -q
Output:
/home/v1rtl/Coding/deno-libs/wizard/mod.ts
A test suite
should sum a + b
PASS A test suite > should sum a + b (0ms)
Test Suites: 1 passed, 0 failed, 1 total
Test Cases: 0 passed, 0 failed, 0 total