This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compare-func): pass cacheData to the compare() function
Also added caching the source file.
- Loading branch information
Showing
5 changed files
with
39 additions
and
18 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`validate options error (pitch) 1`] = ` | ||
"Invalid options object. Cache Loader (Pitch) has been initialised using an options object that does not match the API schema. | ||
"Invalid options object. Cache Loader (Pitch) has been initialized using an options object that does not match the API schema. | ||
- options.cacheIdentifier should be a string. | ||
-> Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation)." | ||
`; | ||
|
||
exports[`validate options error 1`] = ` | ||
"Invalid options object. Cache Loader has been initialised using an options object that does not match the API schema. | ||
"Invalid options object. Cache Loader has been initialized using an options object that does not match the API schema. | ||
- options.cacheIdentifier should be a string. | ||
-> Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation)." | ||
`; | ||
|
||
exports[`validate options unknown (pitch) 1`] = ` | ||
"Invalid options object. Cache Loader (Pitch) has been initialised using an options object that does not match the API schema. | ||
"Invalid options object. Cache Loader (Pitch) has been initialized using an options object that does not match the API schema. | ||
- options has an unknown property 'unknown'. These properties are valid: | ||
object { cacheContext?, cacheKey?, cacheIdentifier?, cacheDirectory?, compare?, precision?, read?, readOnly?, write? }" | ||
`; | ||
exports[`validate options unknown 1`] = ` | ||
"Invalid options object. Cache Loader has been initialised using an options object that does not match the API schema. | ||
"Invalid options object. Cache Loader has been initialized using an options object that does not match the API schema. | ||
- options has an unknown property 'unknown'. These properties are valid: | ||
object { cacheContext?, cacheKey?, cacheIdentifier?, cacheDirectory?, compare?, precision?, read?, readOnly?, write? }" | ||
`; |
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