Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

466 B
Raw Blame
'use strict';

describe('outer describe', function () {
  it('should run this test', function () {});

  describe('skip in before', function () {
    before(function () {
      this.skip();
    });

    it('should never run this test', function () {
      throw new Error('never run this test');
    });
    it('should never run this test', function () {
      throw new Error('never run this test');
    });
  });

  it('should run this test', function () {});
});