sahilrajput03

Jest and expect

Jest Cheatsheet: Click here

describe.only('something', () => {
  it.only('shoudl it be?', (done) => {
    console.log('hello');
    done() // if done is not called then the test will not pass at all. In fact the setTimeout warning is thrown.
  });
});

image

image