Skip to content

ruairidhwm/quip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()