[Jest] Matcher
1. Matcher? Using Matchers · Jest Jest uses "matchers" to let you test values in different ways. This document will introduce some commonly used matchers. For the full list, see the expect API doc. jestjs.io const sum = require('./fn.js'); test('add 1 + 2 to equal 3', () => { expect(sum(1,2)).toBe(3); }); test('add 3 + 3 not to equal 7',() => { expect(sum(3,3)).not.toBe(7); }); matcher란 입력을 해석하고..
2023.03.01