forked from jestjs/jest
/
circusDeclarationErrors.test.ts.snap
65 lines (47 loc) · 1.95 KB
/
circusDeclarationErrors.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`defining tests and hooks asynchronously throws 1`] = `
"FAIL __tests__/asyncDefinition.test.js
● Test suite failed to run
Cannot add a test after tests have started running. Tests must be defined synchronously.
10 |
11 | Promise.resolve().then(() => {
> 12 | test('async definition inside describe', () => {});
| ^
13 | afterAll(() => {});
14 | });
15 | });
at eventHandler (../../packages/jest-circus/build/eventHandler.js:134:11)
at test (__tests__/asyncDefinition.test.js:12:5)
● Test suite failed to run
Cannot add a hook after tests have started running. Hooks must be defined synchronously.
11 | Promise.resolve().then(() => {
12 | test('async definition inside describe', () => {});
> 13 | afterAll(() => {});
| ^
14 | });
15 | });
16 |
at eventHandler (../../packages/jest-circus/build/eventHandler.js:97:11)
at afterAll (__tests__/asyncDefinition.test.js:13:5)
● Test suite failed to run
Cannot add a test after tests have started running. Tests must be defined synchronously.
16 |
17 | Promise.resolve().then(() => {
> 18 | test('async definition outside describe', () => {});
| ^
19 | afterAll(() => {});
20 | });
21 |
at eventHandler (../../packages/jest-circus/build/eventHandler.js:134:11)
at test (__tests__/asyncDefinition.test.js:18:3)
● Test suite failed to run
Cannot add a hook after tests have started running. Hooks must be defined synchronously.
17 | Promise.resolve().then(() => {
18 | test('async definition outside describe', () => {});
> 19 | afterAll(() => {});
| ^
20 | });
21 |
at eventHandler (../../packages/jest-circus/build/eventHandler.js:97:11)
at afterAll (__tests__/asyncDefinition.test.js:19:3)"
`;