diff options
| author | Matt Mastracci <matthew@mastracci.com> | 2024-02-07 09:51:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-07 09:51:28 -0700 |
| commit | ffbb1bad037528863fcc191f0eaf374211252713 (patch) | |
| tree | 9928b64886a34d5e12d22cf352371e8fc8d382b2 /cli/tests/integration | |
| parent | 83d72e5c1c0b983f4b63f3f64f9a1de7600985f4 (diff) | |
chore(cli): Use @test_util for relative path for unit tests (#22327)
This removes the majority of `../../../../../../test_util` relative
imports from the codebase, allowing us to move this code more easily in
the future.
Diffstat (limited to 'cli/tests/integration')
| -rw-r--r-- | cli/tests/integration/js_unit_tests.rs | 3 | ||||
| -rw-r--r-- | cli/tests/integration/node_unit_tests.rs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/js_unit_tests.rs b/cli/tests/integration/js_unit_tests.rs index cb843ee4e..951fc6f62 100644 --- a/cli/tests/integration/js_unit_tests.rs +++ b/cli/tests/integration/js_unit_tests.rs @@ -119,6 +119,9 @@ fn js_unit_test(test: String) { let deno = util::deno_cmd() .current_dir(util::root_path()) .arg("test") + .arg("--config") + .arg("cli/tests/config/deno.json") + .arg("--no-lock") .arg("--unstable") .arg("--location=http://js-unit-tests/foo/bar") .arg("--no-prompt"); diff --git a/cli/tests/integration/node_unit_tests.rs b/cli/tests/integration/node_unit_tests.rs index 680d4018b..b0259663d 100644 --- a/cli/tests/integration/node_unit_tests.rs +++ b/cli/tests/integration/node_unit_tests.rs @@ -96,6 +96,9 @@ fn node_unit_test(test: String) { let mut deno = util::deno_cmd() .current_dir(util::root_path()) .arg("test") + .arg("--config") + .arg("cli/tests/config/deno.json") + .arg("--no-lock") .arg("--unstable") // TODO(kt3k): This option is required to pass tls_test.ts, // but this shouldn't be necessary. tls.connect currently doesn't |
