Debian Codegraph @

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

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