Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Initial unit test - jest setup
const sum = require('./sum');
test('adds 1 + 2 to equal 3', () => {
expect(sum(1, 2)).toBe(3);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.