/* For using jest with node.js */ // In sum.js function sum(a, b) { return a + b; } module.exports = sum; // In sum.test.js const sum = require('./sum'); test('adds 1 + 2 to equal 3', () => { expect(sum(1, 2)).toBe(3); });