I have a code where certain tests will always fail in CI environment. I would like to disable them based on an environment condition.
How to programmatically skip a
describe.skip or it.skipdescribe('Array', function() {
it.skip('#indexOf', function() {
// ...
});
});
describe.only or it.only
describe('Array', function() {
it.only('#indexOf', function() {
// ...
});
});
More info at https://mochajs.org/#inclusive-tests