forked from facebook/react-native
-
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.
add jest-diff to dependencies (facebook#47990)
Summary: Pull Request resolved: facebook#47990 Changelog: [General][Added] - add `jest-diff v29.7.0` to devDependencies Reviewed By: NickGerleman Differential Revision: D66541001 fbshipit-source-id: 01c59a936b66f85ce034b59c7928df3c3f8c2a01
- Loading branch information
1 parent
2aa7997
commit b27bd00
Showing
3 changed files
with
45 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. | ||
* | ||
* @flow strict | ||
* @format | ||
* @oncall react_native | ||
*/ | ||
|
||
declare module 'jest-diff' { | ||
import type {CompareKeys} from 'pretty-format'; | ||
|
||
declare export type DiffOptionsColor = (arg: string) => string; // subset of Chalk type | ||
|
||
declare export type DiffOptions = { | ||
aAnnotation?: string, | ||
aColor?: DiffOptionsColor, | ||
aIndicator?: string, | ||
bAnnotation?: string, | ||
bColor?: DiffOptionsColor, | ||
bIndicator?: string, | ||
changeColor?: DiffOptionsColor, | ||
changeLineTrailingSpaceColor?: DiffOptionsColor, | ||
commonColor?: DiffOptionsColor, | ||
commonIndicator?: string, | ||
commonLineTrailingSpaceColor?: DiffOptionsColor, | ||
contextLines?: number, | ||
emptyFirstOrLastLinePlaceholder?: string, | ||
expand?: boolean, | ||
includeChangeCounts?: boolean, | ||
omitAnnotationLines?: boolean, | ||
patchColor?: DiffOptionsColor, | ||
compareKeys?: CompareKeys, | ||
}; | ||
|
||
declare export function diff( | ||
a: mixed, | ||
b: mixed, | ||
options?: DiffOptions, | ||
): string | null; | ||
} |
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