Skip to content
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

Update to Jest v22.0.1 #4073

Merged
merged 4 commits into from
Dec 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ exports[`DefaultBlockAppender no block present should match snapshot 1`] = `
<Connect(WrappedComponent) />
<input
className="editor-default-block-appender__content"
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onClick={[MockFunction]}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sirreal You might like it, it is possible as of Jest 22.x to provide your own name to the mock, too. See: https://facebook.github.io/jest/blog/2017/12/18/jest-22.html#mock-function-improvements.

onFocus={[MockFunction]}
onKeyDown={[MockFunction]}
readOnly={true}
type="text"
value="Write your story"
Expand Down
Loading