Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch(vest): Pass draft result to skipWhen conditional
- Loading branch information
Showing
4 changed files
with
145 additions
and
7 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
87 changes: 87 additions & 0 deletions
87
packages/vest/src/hooks/__tests__/__snapshots__/skipWhen.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,87 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`skipWhen Should pass result draft to the functional condition 1`] = ` | ||
Object { | ||
"errorCount": 0, | ||
"getErrors": [Function], | ||
"getErrorsByGroup": [Function], | ||
"getWarnings": [Function], | ||
"getWarningsByGroup": [Function], | ||
"groups": Object {}, | ||
"hasErrors": [Function], | ||
"hasErrorsByGroup": [Function], | ||
"hasWarnings": [Function], | ||
"hasWarningsByGroup": [Function], | ||
"isValid": [Function], | ||
"suiteName": undefined, | ||
"testCount": 0, | ||
"tests": Object {}, | ||
"warnCount": 0, | ||
} | ||
`; | ||
|
||
exports[`skipWhen Should pass result draft to the functional condition 2`] = ` | ||
Object { | ||
"errorCount": 1, | ||
"getErrors": [Function], | ||
"getErrorsByGroup": [Function], | ||
"getWarnings": [Function], | ||
"getWarningsByGroup": [Function], | ||
"groups": Object {}, | ||
"hasErrors": [Function], | ||
"hasErrorsByGroup": [Function], | ||
"hasWarnings": [Function], | ||
"hasWarningsByGroup": [Function], | ||
"isValid": [Function], | ||
"suiteName": undefined, | ||
"testCount": 1, | ||
"tests": Object { | ||
"f1": Object { | ||
"errorCount": 1, | ||
"errors": Array [ | ||
"msg", | ||
], | ||
"testCount": 1, | ||
"warnCount": 0, | ||
}, | ||
}, | ||
"warnCount": 0, | ||
} | ||
`; | ||
|
||
exports[`skipWhen Should pass result draft to the functional condition 3`] = ` | ||
Object { | ||
"errorCount": 2, | ||
"getErrors": [Function], | ||
"getErrorsByGroup": [Function], | ||
"getWarnings": [Function], | ||
"getWarningsByGroup": [Function], | ||
"groups": Object {}, | ||
"hasErrors": [Function], | ||
"hasErrorsByGroup": [Function], | ||
"hasWarnings": [Function], | ||
"hasWarningsByGroup": [Function], | ||
"isValid": [Function], | ||
"suiteName": undefined, | ||
"testCount": 2, | ||
"tests": Object { | ||
"f1": Object { | ||
"errorCount": 1, | ||
"errors": Array [ | ||
"msg", | ||
], | ||
"testCount": 1, | ||
"warnCount": 0, | ||
}, | ||
"f2": Object { | ||
"errorCount": 1, | ||
"errors": Array [ | ||
"msg", | ||
], | ||
"testCount": 1, | ||
"warnCount": 0, | ||
}, | ||
}, | ||
"warnCount": 0, | ||
} | ||
`; |
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