Mocha.js: Only and Skip

You use it to perform a test, it allows it.only will ensure that only this test will executed, it.skip will skip the test.

it.only('should be able to get valueA', function() {
    //..
});

it.skip('this test is going to be skipped', function() {
    //..
});

Leave a Reply

Your email address will not be published. Required fields are marked *