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

test: make sure to return promise from test #5336

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Jan 17, 2018

Summary
An asynchronous test did not return its promise.

Picked up by the new eslint rule jest-community/eslint-plugin-jest#42. 🎉

/cc @tushardhole

Test plan
Green CI

Copy link
Collaborator

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

nice!

@codecov-io
Copy link

Codecov Report

Merging #5336 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5336      +/-   ##
=========================================
+ Coverage   61.19%   61.2%   +0.01%     
=========================================
  Files         205     205              
  Lines        6903    6903              
  Branches        4       3       -1     
=========================================
+ Hits         4224    4225       +1     
+ Misses       2678    2677       -1     
  Partials        1       1
Impacted Files Coverage Δ
packages/jest-runtime/src/index.js 73.99% <0%> (+0.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a441ecf...1a30b95. Read the comment docs.

@SimenB SimenB merged commit 30a9ca2 into jestjs:master Jan 17, 2018
@SimenB SimenB deleted the clear-all-mocks-test-fix branch January 17, 2018 15:02
@tushardhole
Copy link
Contributor

✌️

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants