Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

⚠️ Wizard is deprecated in favor of tincan.

πŸ§™ Wizard

GitHub release (latest by date) GitHub Workflow Status Codecov

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