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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fake tests #2439

Merged
merged 5 commits into from Jan 31, 2022
Merged

Fix fake tests #2439

merged 5 commits into from Jan 31, 2022

Conversation

fatso83
Copy link
Contributor

@fatso83 fatso83 commented Jan 30, 2022

Purpose (TL;DR) - mandatory

I just closed fatso83/mini-mocha#23, which basically was about that the test runner should exit with a non-zero status if a test fails. As soon as that was updated, our example tests in Sinon failed 馃ぁ So this PR fixes the failing tests that the bugfix found.

I also flattened the tests for fakes, removing the describe block. Since it did not describe any specific issue, I felt it did not really do much in helping the understanding, so I thought it just as well could be removed. I also renamed the test files (for fakes only) to have them run in numerically sorted order.

@codecov
Copy link

codecov bot commented Jan 30, 2022

Codecov Report

Merging #2439 (a656b03) into master (0dd4d93) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2439   +/-   ##
=======================================
  Coverage   96.01%   96.01%           
=======================================
  Files          41       41           
  Lines        1906     1906           
=======================================
  Hits         1830     1830           
  Misses         76       76           
Flag Coverage 螖
unit 96.01% <酶> (酶)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 0dd4d93...a656b03. Read the comment docs.

Copy link
Member

@mroderick mroderick left a comment

Choose a reason for hiding this comment

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

Very nice 馃憤

@fatso83 fatso83 merged commit 209f71f into sinonjs:master Jan 31, 2022
@fatso83 fatso83 deleted the fix-tests branch January 31, 2022 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not exit with correct exit code
2 participants