Skip to content

Commit c5fe519

Browse files
committed
add to match named snapshot to expect
1 parent bd8de10 commit c5fe519

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/jest-expect/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {expect} from 'expect';
99
import {
1010
addSerializer,
1111
toMatchInlineSnapshot,
12+
toMatchNamedSnapshot,
1213
toMatchSnapshot,
1314
toThrowErrorMatchingInlineSnapshot,
1415
toThrowErrorMatchingSnapshot,
@@ -29,6 +30,7 @@ export type {JestExpect} from './types';
2930
function createJestExpect(): JestExpect {
3031
expect.extend({
3132
toMatchInlineSnapshot,
33+
toMatchNamedSnapshot,
3234
toMatchSnapshot,
3335
toThrowErrorMatchingInlineSnapshot,
3436
toThrowErrorMatchingSnapshot,

0 commit comments

Comments
 (0)