Skip to content

Commit

Permalink
Add jest-snapshot-serializer-raw as dev dependency
Browse files Browse the repository at this point in the history
Differential Revision: D41615402

fbshipit-source-id: 9f4a8e5c735005ca5f5e133d07b73eb3b87b1b45
  • Loading branch information
motiz88 authored and facebook-github-bot committed Nov 30, 2022
1 parent 032c4a1 commit 4942d56
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions flow-typed/jest-snapshot-serializer-raw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
*/

declare module 'jest-snapshot-serializer-raw' {
declare opaque type Wrapper;
declare export function wrap(value: string): Wrapper;
declare export function test(value: mixed): boolean;
declare export function print(value: Wrapper): string;
}
1 change: 1 addition & 0 deletions packages/metro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"babel-jest": "^29.2.1",
"dedent": "^0.7.0",
"jest-snapshot": "^26.5.2",
"jest-snapshot-serializer-raw": "^1.2.0",
"metro-babel-register": "0.73.4",
"metro-memory-fs": "0.73.4",
"metro-react-native-babel-preset": "0.73.4",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5250,6 +5250,11 @@ jest-serializer@^27.0.6:
"@types/node" "*"
graceful-fs "^4.2.4"

jest-snapshot-serializer-raw@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/jest-snapshot-serializer-raw/-/jest-snapshot-serializer-raw-1.2.0.tgz#cd67afb5e5cc39d88d518b45e7320dd01ce55148"
integrity sha512-Cnp2u7GkaXBVOOelhU94x6Kb/10WJjQtgKDvqynnYGNGQlKBj06x8QZmRkL8XWWVLQ5DKA2fT5rY9kRd512JcA==

jest-snapshot@^26.5.2:
version "26.6.2"
resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84"
Expand Down

0 comments on commit 4942d56

Please sign in to comment.