Jest · Module
any
Jest lets you write tests that check whether JavaScript code returns the expected results. Install it, add a test script, create a test file, and run it with your package manager.
Last updated
Syntax
test(name, callback)
expect(received).toBe(expected)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expecttoBetest@jest/globalsts-jest@babel/preset-typescriptbabel-jesteslint-plugin-jest