forked from jestjs/jest
/
nestedTestDefinitions.test.ts.snap
40 lines (30 loc) · 1.16 KB
/
nestedTestDefinitions.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`print correct error message with nested test definitions inside describe 1`] = `
FAIL __tests__/nestedTestWithinDescribe.js
in describe
✕ outer test
● in describe › outer test
Tests cannot be nested. Test "inner test" cannot run because it is nested within "outer test".
14 | expect(getTruthy()).toBeTruthy();
15 |
> 16 | test('inner test', () => {
| ^
17 | expect(getTruthy()).toBeTruthy();
18 | });
19 | });
at Object.test (__tests__/nestedTestWithinDescribe.js:16:5)
`;
exports[`print correct error message with nested test definitions outside describe 1`] = `
FAIL __tests__/nestedTestOutsideDescribe.js
✕ outer test
● outer test
Tests cannot be nested. Test "inner test" cannot run because it is nested within "outer test".
13 | expect(getTruthy()).toBeTruthy();
14 |
> 15 | test('inner test', () => {
| ^
16 | expect(getTruthy()).toEqual('This test should not have run');
17 | });
18 | });
at Object.test (__tests__/nestedTestOutsideDescribe.js:15:3)
`;