-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Jest Migration #262
Comments
Good stuff. Yep, this lists looks like it covers the bases. Thanks for tackling this! 👍 |
Couple quick questions/curious:
I'm not asking because I have an expert opinion, just curious the "whys". (and i'm thinking of using this boilerplate on a new project because it looks great and want to know a potential upcoming change before I get started hah) |
Few notes before my answers. This is just my opinion on the test frameworks. Just because I finish this, it may not be merged and approved at the test framework for Slingshot. My intent with this was to learn more about jest and provide a how to if anyone wanted to us it.
If you are starting something new I would recommend looking at my Additionally, I will make sure I include these questions and answers into the FAQ page on my branch. |
@kwelch Thanks for the excellent response. I've been ramping up on lots of the tooling lately and am just trying to educate myself. Appreciate the time you spent replying :) |
I am caught up in a few different projects currently and unable to finish this off, if someone want to carry it across the finish line it is appreciated. |
I spent some time on this awhile back and hit a wall when I realized two roadblocks:
|
I am starting to free up and make look into continuing this transition. I will also look into the feedback on the minimal output. |
In effort to move this forward I have submitted jestjs/jest#2703 to add a summary flag to This will reduce the output to just the summary section on success. See image below. |
They are requesting a progress reporter instead, which I will handle but make take some time. Does anyone have the knowledge/bandwidth to look into code coverage with Jest? I want to move this forward however my time is evading me and I am starting up two new projects. Additionally, my knowledge of coverage is non-existent. |
@kwelch, I can probably look at this this weekend.
…On Thu, Jan 26, 2017, 9:19 AM Kyle Welch ***@***.***> wrote:
They are requesting a progress reporter instead, which I will handle but
make take some time.
Does anyone have the knowledge/bandwidth to look into code coverage with
Jest?
I want to move this forward however my time is evading me and I am
starting up two new projects. Additionally, my knowledge of coverage is
non-existent.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#262 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAy2z-1UV0hkEvGlVnxFiRtHWzxb0KaXks5rWKuJgaJpZM4KBLYM>
.
|
I just made a push, pretty simple to switch code coverage. I would appreciate any review, it looks like it is working well. I am always nervous when things work the first time. |
@kwelch nice! I'll take a peek at your branch tomorrow night. |
Finishing some clean up and should be pushing soon. Only items left should be progress reporter and documentation. All updates have been pushed @coryhouse, I will continue to do my best to keep updates on any progress made on the reporter. |
@kwelch Excellent! I was going to review the branch, but looks like it's a few commits behind master. Can you pull latest so we can review an up to date PR? Regarding the minimal, to me it's pretty important because Jest outputs so much by default that it's hard to see linting issues, but I'll have to try your branch again to see how it plays out. |
Rebased and pushed. 😃 I understand the need for the reporter, I am just not sure how long it will take to get it in place. Jest appears to have fixed/simplified a lot of the coverage that mocha had issues with. |
Branch looks great to me! Only one suggestion: Why not simplify the test script to this?
That ran fine for me. Any reason you did the complicated line? |
@kwelch, same comment as @coryhouse . I usually just run it as |
Looks good to me too, but there appear to be two errors that the linter is catching when I run
|
I can try to switch it back. I believe at one point the build was breaking on Node v4. Lint error is in the test, that should be a quick fix. Looks like it is also running in watch on dev server. I wonder how well that will work since it only tests based on changes since last commit, unless we specify I will also start combing through the docs for references to mocha and ensure they are updated. I believe the dependency section is also out of date. If someone wants to look that over, I built a package |
I attempting to use just I have also pushed fixes for the lint issues. |
@kwelch - You're awesome! Thanks so much for all your hard work on this! 💯 I'm updating the docs right now... |
Doc updates are committed to the jest-migration branch. |
Awesome, are we ready to merge? Then put in a bug to update to new reporter when it is released? |
Excellent and agreed! |
I have started a (new branch)[https://github.com/coryhouse/react-slingshot/tree/jest-migration].
The initial move was rather painless, but here are a few steps that I would see as required before merging in this change.
chai
assertions that no longer apply (I noticed reference to deep equal)Please comment with any question or if I am missing anything that should be added to the list above.
The text was updated successfully, but these errors were encountered: