forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
declarationErrors.test.ts.snap
41 lines (29 loc) · 1.17 KB
/
declarationErrors.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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`warns if describe returns a Promise 1`] = `
console.log
● Test suite failed to run
Returning a Promise from "describe" is not supported. Tests must be defined synchronously.
Returning a value from "describe" will fail the test in a future version of Jest.
9 | 'use strict';
10 |
> 11 | describe('Promise describe warns', () => {
| ^
12 | it('t', () => {});
13 | return Promise.resolve();
14 | });
at Object.describe (__tests__/describeReturnPromise.test.js:11:1)
`;
exports[`warns if describe returns something 1`] = `
console.log
● Test suite failed to run
A "describe" callback must not return a value.
Returning a value from "describe" will fail the test in a future version of Jest.
9 | 'use strict';
10 |
> 11 | describe('describe return warns', () => {
| ^
12 | it('t', () => {});
13 | return 42;
14 | });
at Object.describe (__tests__/describeReturnSomething.test.js:11:1)
`;