diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-08-29 13:02:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 13:02:54 -0600 |
commit | 64045ebc7a4e1c9f77204ffe35563134a453a7c6 (patch) | |
tree | c6710acf89e7019fd203d1667edc1a7798850c1d /cli/tests/integration/node_unit_tests.rs | |
parent | 441b860978afd0160a459aee7e42ccc97263dc23 (diff) |
chore(cli): use NPM_CONFIG_REGISTRY for all tests (#20320)
We never want tests to hit the real npm registry because this causes
test flakes. In addition, we set a sentinal "unset" value for
`NPM_CONFIG_REGISTRY` to ensure that all tests requiring npm go through
the test server.
Diffstat (limited to 'cli/tests/integration/node_unit_tests.rs')
-rw-r--r-- | cli/tests/integration/node_unit_tests.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tests/integration/node_unit_tests.rs b/cli/tests/integration/node_unit_tests.rs index b9a3d4b1e..6f1f6fea9 100644 --- a/cli/tests/integration/node_unit_tests.rs +++ b/cli/tests/integration/node_unit_tests.rs @@ -109,6 +109,7 @@ fn node_unit_test(test: String) { .join("unit_node") .join(format!("{test}.ts")), ) + .envs(env_vars_for_npm_tests()) .stderr(Stdio::piped()) .stdout(Stdio::piped()) .spawn() |