-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hooks): decouple hooks from toolchain
- Loading branch information
Showing
40 changed files
with
2,864 additions
and
1,090 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,78 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`eventLogger log chained events from upper level function call 1`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"event": "upper.original", | ||
}, | ||
"upper.original", | ||
], | ||
Array [ | ||
Object { | ||
"event": "upper", | ||
}, | ||
"upper", | ||
], | ||
] | ||
`; | ||
|
||
exports[`eventLogger log the error event when input function fails 1`] = `Array []`; | ||
|
||
exports[`eventLogger log the error event when input function fails 2`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"error": Object { | ||
"message": "error", | ||
}, | ||
"event": "original", | ||
}, | ||
"error", | ||
], | ||
] | ||
`; | ||
|
||
exports[`eventLogger log the parsed error when errorParse set 1`] = `Array []`; | ||
|
||
exports[`eventLogger log the parsed error when errorParse set 2`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"error": Object { | ||
"message": "error", | ||
"stack": "Error: error | ||
at ", | ||
}, | ||
"event": "original", | ||
}, | ||
"error", | ||
], | ||
] | ||
`; | ||
|
||
exports[`eventLogger log the success event with param when enabled 1`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"event": "original", | ||
"param": Object { | ||
"text": "yes", | ||
}, | ||
}, | ||
"original", | ||
], | ||
] | ||
`; | ||
|
||
exports[`eventLogger log the success event with result when enabled 1`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"event": "original", | ||
"result": "yes", | ||
}, | ||
"original", | ||
], | ||
] | ||
`; |
Oops, something went wrong.