-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
e2e/__tests__/__snapshots__/declarationErrors.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`warns if describe returns a Promise 1`] = ` | ||
" console.warn | ||
● 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.warn | ||
● 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) | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters