Make a decision to choose between mocha and jest for testing CLI #864
Closed
Shurtu-gal
started this conversation in
Polls
Replies: 3 comments
-
Personally, I’d prefer to use Jest as I’m more familiar with it. However, the set of testing tools that Oclif provides are based on Mocha and fancy-test, so I guess it would make more sense to choose Mocha (mostly taking into account the problem with coverage when using Jest). My vote goes for Mocha then ✋ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Go with Mocha, there is no better alternative |
Beta Was this translation helpful? Give feedback.
0 replies
-
Okay, I will try implementing it in Mocha. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am working on adding tests to the current CLI in this PR. This is being done to increase the test coverage according to this issue.
The problem being faced currently is that Jest is giving incorrect coverage :-
but the actual coverage is more when testing with Mocha as it has proper integration with Oclif (Testing which was being used before this PR as seen below.
Everyone's input will be helpful 😸.
5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions