-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 (#47990)
Summary: Changelog: [General][Added] - add `jest-diff v29.7.0` to devDependencies Reviewed By: NickGerleman Differential Revision: D66541001
- Loading branch information
1 parent
bc9e4db
commit a21e1f4
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