Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 380 Bytes

README.md

File metadata and controls

33 lines (18 loc) · 380 Bytes

Quip

A small version of Jest

Read the blog here.

Methods

Expect

.toBe()

.toThrow()

.toBeTruthy()

.toBeFalsy()

.toBeNull()

Mocking

const random = fn((p1: string, p2: string) => p1);

const winner = random('Winner', 'Loser');

expect(winner).toBe('Winner');

Spies

.spyOn()