Jest · Module
assertions
Jest tests JavaScript code with test files and assertions. Install it as a development dependency, add a test script, and run the test command.
Last updated
Syntax
test(name, fn)
expect(value).toBe(expected)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expecttoBeUsing Matchersnpm testyarn testsum.test.js