Computer Science, asked by Drax8979, 1 year ago

Jest will wait until the ______________ callback is called before finishing the test.

Answers

Answered by siddhartharao77
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