Jest · Pipe
globalSetup
Jest runs JavaScript tests. A basic test calls a function and uses expect(...).toBe(...) to check the exact result.
Last updated
Syntax
test(name, callback)
expect(value).toBe(expected)
{ "scripts": { "test": "jest" } }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expecttoBetestjest.config.jsdefineConfigglobalSetupglobalTeardown--config