Debian Codegraph @

test/integration/fixtures/hooks/after-each-this-test-error.fixture.js

raw
1 describe('fail the test from the "after each" hook', function() {
2 it('should fail', function() {
3 // but not here
4 });
5
6 afterEach(function() {
7 this.test.error(new Error('failing from after each'));
8 });
9 });