-
Notifications
You must be signed in to change notification settings - Fork 296
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
Move js dependencies required for E2E tests into their own workspace #10013
Comments
Nice work here @eugene-manuilov, this looks like a good way to get us started with an incremental move to NPM workspaces. IB ✅ |
Hi @eugene-manuilov, since npm 7+ is required to use npm workspaces, this issue effectively depends on #6026 to upgrade Node to 18 (and npm 7+). If we remain on Node 14 (npm 6), we’ll have to manually upgrade npm and set up the workspace. It would be best to complete the Node upgrade first. cc: @techanvil |
Oh... that's unpleasant... Then we probably need to do it as a separate package.json file for now and compose all packages into workspaces later when we can upgrade node. What do you think, @techanvil? This also means that we would have to use a separate |
@hussain-t @eugene-manuilov I don't see an issue upgrading to NPM 7 seeing as it only requires Node 10 upward. Hussain, do you envisage this causing any particular problems? |
In order to upgrade This isn't as easily definable as adding an |
Hey @benbowler, although we will no doubt want to install it globally for convenience, and we should mention this in the handbook, I would suggest that we do add it to This way we clearly track which version we depend on and don't have to override the globally installed version if we don't want to. With
Which can then be run like this:
Once we've updated to a more recent Node version we can roll this back and revert to the stock global NPM. WDYT? |
@benbowler, maybe we could call |
Feature Description
In order to resolve js dependency conflicts, we need to separate dependencies used by different parts of our project and put them into separate workspaces. The first part of this process is to move js dependencies needed for E2E tests to run into a separate workspace.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
package.json
file is updated to have theworkspaces
section with the only one workspace for E2E tests.Implementation Brief
package.json
file to have the newworkspaces
section using[ "tests/e2e" ]
as its value.package.json
file in thetests/e2e
folder. You can usenpm init -w ./tests/e2e
to do that.package.json
file and move all dependecies that are used in e2e tests to its own package by uninstalling them in the main package.json file and installing with-w ./tests/e2e
argument to specify the correct workspace.pacakge.json
file to proxy e2e commands to the correct workspace using thenpm run ... -w ./tests/e2e
approach.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: