-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(vest): Add sanity tests for group validity
- Loading branch information
Showing
2 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
114 changes: 114 additions & 0 deletions
114
packages/vest/src/core/isolate/isolates/__tests__/__snapshots__/group.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,114 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`group: base case Group validity 1`] = ` | ||
Object { | ||
"done": [Function], | ||
"errorCount": 4, | ||
"getErrors": [Function], | ||
"getErrorsByGroup": [Function], | ||
"getWarnings": [Function], | ||
"getWarningsByGroup": [Function], | ||
"groups": Object { | ||
"group_1": Object { | ||
"field_1": Object { | ||
"errorCount": 0, | ||
"errors": Array [], | ||
"testCount": 1, | ||
"valid": true, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
"field_2": Object { | ||
"errorCount": 1, | ||
"errors": Array [], | ||
"testCount": 2, | ||
"valid": false, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
}, | ||
"group_2": Object { | ||
"field_1": Object { | ||
"errorCount": 1, | ||
"errors": Array [], | ||
"testCount": 1, | ||
"valid": false, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
"field_2": Object { | ||
"errorCount": 0, | ||
"errors": Array [], | ||
"testCount": 1, | ||
"valid": true, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
}, | ||
"group_3": Object { | ||
"field_1": Object { | ||
"errorCount": 1, | ||
"errors": Array [], | ||
"testCount": 1, | ||
"valid": false, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
"field_2": Object { | ||
"errorCount": 1, | ||
"errors": Array [], | ||
"testCount": 1, | ||
"valid": false, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
}, | ||
"group_4": Object { | ||
"field_1": Object { | ||
"errorCount": 0, | ||
"errors": Array [], | ||
"testCount": 1, | ||
"valid": true, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
"field_2": Object { | ||
"errorCount": 0, | ||
"errors": Array [], | ||
"testCount": 1, | ||
"valid": true, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
}, | ||
}, | ||
"hasErrors": [Function], | ||
"hasErrorsByGroup": [Function], | ||
"hasWarnings": [Function], | ||
"hasWarningsByGroup": [Function], | ||
"isValid": [Function], | ||
"isValidByGroup": [Function], | ||
"suiteName": undefined, | ||
"testCount": 9, | ||
"tests": Object { | ||
"field_1": Object { | ||
"errorCount": 2, | ||
"errors": Array [], | ||
"testCount": 4, | ||
"valid": false, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
"field_2": Object { | ||
"errorCount": 2, | ||
"errors": Array [], | ||
"testCount": 5, | ||
"valid": false, | ||
"warnCount": 0, | ||
"warnings": Array [], | ||
}, | ||
}, | ||
"valid": false, | ||
"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
a5db77c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vest-next – ./website
vest-next-git-latest-ealush.vercel.app
vest-next.vercel.app
vest-website.vercel.app
vest-next-ealush.vercel.app