Debian Codegraph @

test/integration/fixtures/hooks/after-hook-async-error.fixture.js

raw
1 'use strict';
2
3 describe('spec 1', function () {
4 after(function (done) {
5 console.log('after');
6 process.nextTick(function () {
7 throw new Error('after hook error');
8 });
9 });
10 it('should be called because error is in after hook', function () {
11 console.log('test 1');
12 });
13 it('should be called because error is in after hook', function () {
14 console.log('test 2');
15 });
16 });
17 describe('spec 2', function () {
18 it('should be called, because hook error was in a sibling suite', function () {
19 console.log('test 3');
20 });
21 });