-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Use Jest #981
Use Jest #981
Conversation
Codecov Report
@@ Coverage Diff @@
## master #981 +/- ##
======================================
Coverage 100% 100%
======================================
Files 4 5 +1
Lines 431 356 -75
Branches 102 0 -102
======================================
- Hits 431 356 -75
Continue to review full report at Codecov.
|
great work! |
@gillesdemey, I was just wondering, what are the arguments for |
@robinpokorny It's an alias of https://nodejs.org/api/assert.html#assert_assert_ok_value_message |
@gillesdemey Oh, I meant in comparison to Full disclosure, I really like the new .resolves/.rejects matchers for async code. I was about to check if it is used here and create a PR otherwise. But found out that we use |
I believe @jonathanong has stated his preference for |
@gillesdemey OK, thanks. That's what I wanted to find out! |
Inspired by #926, fixes #703 and partially addresses #559
As I understand the consensus seems to be:
Jest
assert
supertest@3
I used Promises / async where it made most sense and where it simplified the tests.
I'm using
--forceExit
because some tests do not properly closeapp.listen
, I don't think it's that big of a deal and the current test suite has the same behaviour.Haven't focused on making the benchmarks work cross-platform, might send a PR in the future to use autocannon instead of wrk (although
wrk
is fine for me, it seems some folks are concerned about the Windows platform).