Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

jest

const sum = require('./sum');

test('adds 1 + 2 to equal 3', () => {
  expect(sum(1, 2)).toBe(3);
});
Copy
Source by jestjs.io #
 
PREVIOUS NEXT
Tagged: #jest
ADD COMMENT
Topic
Name
2+4 =