Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the nvm required by the Dashboard (#2984)
PBENCH-891 This PR addresses some of the issues that we've seen recently with the Dashboard unit testing in the CI. This was the result of a breaking change to the tough-cookie component. tough-cookie is not used by the Dashboard; rather, it's a dependency of a dependency of Jest which we use for Dashboard unit testing. This PR makes three changes: * Add an explicit (development) dependency on tough-cookie v4.1.2 (the breakage was introduced in v4.1.0, and v4.1.1 was a failed attempt to fix it); without the explicit dependency, we seem to still pick up v4.1.0. * Add a command to the build script to remove the node_modules directory, to ensure that we pick up a fresh installation of our dependencies. (There are other ways to accomplish this (such as the npm commands, clean-install and ci), but without a version-controlled package-lock.json file, they all present problems, so we'll just brute-force it for now.) Also, since it's not currently version-controlled, remove the package-lock.json file, so that we generate a fresh set of dependencies on each build. * Remove the dependency on nvm. It pulls a very old version of the manager, and we don't seem to actually need it (at least, as a production dependency...).
- Loading branch information