Debian Codegraph @

test/integration/fixtures/hooks/before-each-hook-error.fixture.js

raw
1 'use strict';
2
3 describe('spec 1', function () {
4 beforeEach(function () {
5 console.log('before');
6 throw new Error('before each hook error');
7 });
8 it('should not be called because of error in before each hook', function () {
9 console.log('test 1');
10 });
11 it('should not be called because of error in before each 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 });