jest - astromechanic/cheat_sheets GitHub Wiki
import { sum } from '../sum';
describe('sum()', () => {
it('should add 1 and 2 returning 3', () => {
expect(sum(1, 2)).toBe(3);
});
});
describe(name, callback)
it
= test
expect(expression).jestMatcher()
- see the jest matches here: https://jestjs.io/docs/expect