Last active
May 23, 2016 17:03
-
-
Save DanLuchi/ff2c43e73904e2dc1215fe19d5876a0d to your computer and use it in GitHub Desktop.
Javascript Testing Issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What are the issues | |
Jest tests with lots of things unmocked are really slow | |
Examples: (run `npm test`): | |
PASS app/assets/javascripts/shared/view_controllers/__tests__/book_story_comments_view_controller-test.coffee (47.683s) | |
PASS app/assets/javascripts/shared/components/__tests__/book_card-test.coffee (48.103s) | |
PASS app/assets/javascripts/shared/stores/__tests__/profile_signup_form_store-test.coffee (24.089s) | |
PASS app/assets/javascripts/shared/stores/__tests__/book_story_form_store-test.coffee (24.394s) | |
PASS app/assets/javascripts/shared/view_controllers/__tests__/create_book_story_button_view_controller-test.coffee (15.639s) | |
PASS app/assets/javascripts/features/profile/stores/__tests__/edit_profile_form_store-test.coffee (21.567s) | |
PASS app/assets/javascripts/features/buzz/view_controllers/__tests__/contact_follows_view_controller-test.coffee (16.739s) | |
PASS app/assets/javascripts/shared/components/__tests__/book_story-test.coffee (16.635s) | |
This is particularly problematic for CircleCI since it must run all of the Javascript tests before it starts the Ruby tests, so these tests are adding 2-3 minutes to each build. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment