🧙 Wizard
Minimal Jest-like wrapper for unit tests based on Deno.test()
.
Code is extracted from Opine test utils file.
Usage
// mod_test.ts
import { describe, it, expect } from 'https://deno.land/x/wizard/mod.ts'
describe('A test suite', () => {
it('should sum a + b ', () => {
expect(1 + 2).toBe(3)
})
})
Then run:
deno test
Output:
Check file:///home/v1rtl/Coding/deno-libs/wizard/$deno$test.ts
running 1 tests
test should sum a + b ... ok (2ms)
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out