Skip to content

ElijahKotyluk/unrift

Repository files navigation

UNRIFT

npm version npm downloads CI License Node Docs

A lightweight, fast TypeScript test framework with ESM-first design.

Documentation · Getting Started · API Reference

Features

  • ESM-first with CJS fallback
  • TypeScript native — esbuild-powered transforms, no separate compile step
  • Familiar APIdescribe / it / expect (Jest/Vitest compatible)
  • Rich matcher set — deep equality, toMatchObject, toHaveProperty, numeric, async, and more
  • Extensible matchers via expect.extend()
  • Async assertionsresolves / rejects with full .not support
  • Test modifiers.only, .skip, .todo
  • Bail mode and configurable timeouts
  • JSON output for CI integration
  • Programmatic APIrunEngine for use in custom tooling
  • Zero config — works out of the box

Install

npm install -D unrift
# or
pnpm add -D unrift
# or
yarn add -D unrift

Quick Start

// math.spec.ts
import { describe, it, expect } from "unrift";

describe("math", () => {
  it("adds numbers", () => {
    expect(1 + 2).toBe(3);
  });

  it("compares objects", () => {
    expect({ a: 1 }).toEqual({ a: 1 });
  });
});
npx unrift

For more examples, see the Quick Start guide.

Documentation

Visit unrift.pages.dev for the full documentation:

License

MIT

About

TypeScript unit testing framework

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors