Prev Next

Testing / Jasmine Interview Questions

How can we disable tests in Jasmine?

We can disable tests by using xit instead of 'it', xdescribe instead of 'describe' as shown below:

xdescribe('Hello', () => { (1)
  xit('says Hello', () => { (1)
    expect(Hello())
        .toEqual('Hello!');
  });
});

More Related questions...

Show more question and Answers...


Comments & Discussions