-
-
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.
[jest-each] Add each array validation check (#7033)
- Loading branch information
1 parent
7478a79
commit e2ebcd0
Showing
4 changed files
with
99 additions
and
8 deletions.
There are no files selected for viewing
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
57 changes: 57 additions & 0 deletions
57
packages/jest-each/src/__tests__/__snapshots__/array.test.js.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,57 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`jest-each .describe throws an error when not called with an array 1`] = ` | ||
"\`.each\` must be called with an Array or Tagged Template String. | ||
Instead was called with: undefined | ||
" | ||
`; | ||
|
||
exports[`jest-each .describe.only throws an error when not called with an array 1`] = ` | ||
"\`.each\` must be called with an Array or Tagged Template String. | ||
Instead was called with: undefined | ||
" | ||
`; | ||
|
||
exports[`jest-each .fdescribe throws an error when not called with an array 1`] = ` | ||
"\`.each\` must be called with an Array or Tagged Template String. | ||
Instead was called with: undefined | ||
" | ||
`; | ||
|
||
exports[`jest-each .fit throws an error when not called with an array 1`] = ` | ||
"\`.each\` must be called with an Array or Tagged Template String. | ||
Instead was called with: undefined | ||
" | ||
`; | ||
|
||
exports[`jest-each .it throws an error when not called with an array 1`] = ` | ||
"\`.each\` must be called with an Array or Tagged Template String. | ||
Instead was called with: undefined | ||
" | ||
`; | ||
|
||
exports[`jest-each .it.only throws an error when not called with an array 1`] = ` | ||
"\`.each\` must be called with an Array or Tagged Template String. | ||
Instead was called with: undefined | ||
" | ||
`; | ||
|
||
exports[`jest-each .test throws an error when not called with an array 1`] = ` | ||
"\`.each\` must be called with an Array or Tagged Template String. | ||
Instead was called with: undefined | ||
" | ||
`; | ||
|
||
exports[`jest-each .test.only throws an error when not called with an array 1`] = ` | ||
"\`.each\` must be called with an Array or Tagged Template String. | ||
Instead was called with: undefined | ||
" | ||
`; |
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
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