-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
jest snapshot - TS migration #7899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 13 commits
0ecbf42
7a181dc
60c07cd
f12de38
1c70f23
934b93c
b94d602
7dc5065
b6522be
27837ec
c7991d8
6cd97aa
cdb6096
5706125
835974d
e6b14dc
d0f3789
81cec4a
9c16d91
36d32f3
1fb3194
84ae5ca
4a14bc4
caf2268
1202434
cc59272
3c906c3
9bd4eb0
3de88c4
bb89663
186194e
9288a1d
19aa286
d9e9314
7590af9
b915c81
2a8795e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| declare module 'natural-compare' { | ||
SimenB marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| const NaturalCompare: (a: string, b: string) => number; | ||
| export default NaturalCompare; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,11 +5,12 @@ | |
| * LICENSE file in the root directory of this source tree. | ||
| * | ||
| */ | ||
|
|
||
| 'use strict'; | ||
|
||
|
|
||
| const {toThrowErrorMatchingSnapshot} = require('../'); | ||
doniyor2109 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| let matchFn; | ||
| let matchFn: jest.Mock; | ||
|
|
||
| beforeEach(() => { | ||
| matchFn = jest.fn(() => ({ | ||
|
|
@@ -33,7 +34,7 @@ it('throw matcher can take func', () => { | |
| }); | ||
|
|
||
| describe('throw matcher from promise', () => { | ||
| let throwMatcher; | ||
| let throwMatcher: typeof toThrowErrorMatchingSnapshot; | ||
|
|
||
| beforeEach(() => { | ||
| throwMatcher = toThrowErrorMatchingSnapshot.bind({ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.