Jest will wait until the ______________ callback is called before finishing the test.
Answers
Answered by
1
Jest will wait until the done callback is done before finishing the test.
What is Jest:
(i) It is a library for testing JavaScript code.
(ii) It is used by Facebook to test all JavaScript code including React app's.
(iii) It provide a Zero-configuration experience with tools ready to use out of box.
Small Example:
describe('Addition',() =>
{
it('knows that 2 and 2 make 4', () =>
{
expect(2 + 2).toBe(4);
});
});
Advantages of Jest:
(i) Work with Minimal Set or configuration
(ii) Snapshot testing
Hope it helps!
Similar questions
Social Sciences,
8 months ago
Math,
8 months ago
Hindi,
1 year ago
English,
1 year ago
Math,
1 year ago