Skip to content

A simple - and probably wrong - unit testing lib for typescript. Do not use lol

Notifications You must be signed in to change notification settings

duck-nukem/tunit

Repository files navigation

What's this?

An xUnit implementation for Typescript for learning purposes 😇

How does it look

import { assertEquals, assertTrue } from 'assertions';
import { Setup, TearDown, test } from 'test';

export class TestTUnit implements Setup, TearDown {
  setup(): void {
    // setup code ...
  }

  tearDown(): void {
    /// teardown code ...
  }

  @test()
  testIsPassing() {
    assertTrue(true);
  }
  
  @test({name: 'custom test name', skip: true})
  testIsIgnored() {
    assertEquals(true, false);
  }

execution results in terminal

About

A simple - and probably wrong - unit testing lib for typescript. Do not use lol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published