Skip to content

armgit / mocha

Public Imported from GitHub
0

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

220 B
Raw Blame
describe('fail the test from the "after each" hook', function() {
  it('should fail', function() {
    // but not here
  });

  afterEach(function() {
    this.test.error(new Error('failing from after each'));
  });
});