Skip to content
This repository has been archived by the owner on May 23, 2021. It is now read-only.
/ wizard Public archive

[DEPRECATED] ๐Ÿง™๐Ÿผโ€โ™‚๏ธ Minimal Jest-like unit testing framework for Deno.

License

Notifications You must be signed in to change notification settings

deno-libs/wizard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš ๏ธ 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