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