Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix test suite #1148

Merged
merged 3 commits into from
Dec 3, 2021
Merged

Fix test suite #1148

merged 3 commits into from
Dec 3, 2021

Conversation

kylemellander
Copy link
Contributor

Summary

Currently, if you pull down the app to do any work to contribute, and you run the tests, there are many errors that will pop up preventing you from being able to run the test suite.

The intention of this PR is to get the tests in working order so that we can build more tests to make sure that support for newer features, like webpack 5, are supported.

The issues lies in 2 main places:

  1. mimemagic has yanked 3.3.3 (up through 3.3.7), so this upgrades the version for the tests to 3.3.10.
  2. The current version of webpack-dev-server in the dummy app does not support webpack 3, which it is built for. This change lowers the version of webpack-dev-server to 2.11.5, which is the last update that supports webpack 3.

Other Information

This PR purposefully does not add more tests, but I intend to make another PR after this one that will do more to make sure that webpack 4 and 5 are testing building with the correct javascript libraries. Currently, they are only built with the one in the dummy app which is statically locked to webpack 3, even though the tests refer to it running as webpack 4.

I think it could be beneficial to rename that build for now until we can get to making sure that it is properly tested.

In addition to the change, running the tests bumped the version of react_ujs in the package.json to the current version, so I thought it sane to commit it. I can easily remove that if that should be handled by the travis run.

`mimemagic` removed version 0.3.3 (up through 0.3.6) and it was preventing the appraisal tests from running.

This update was first started in reactjs#1114.
The `webpack-dev-server` package for the dummy test app was locked to a version that required webpack 4.  Since the dummy is created for webpack 3, this was causing the builds to fail.

In the future, we will need to add more support for the different webpack versions to make sure that the functionality is supported.
This was lagging behind the current version and would automatically jump up when the tests pass.
@BookOfGreg
Copy link
Member

Anyone working on stabilizing the tests here is 👍 in my books.

@BookOfGreg BookOfGreg merged commit 7f46d76 into reactjs:master Dec 3, 2021
@kylemellander kylemellander deleted the fix-testing branch December 3, 2021 22:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants