From c213ad380f349dee1f65e6d9a9f7a8fa669b2af2 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 17 Nov 2023 22:46:15 -0500 Subject: chore: combine `TestCommandBuilder` with `DenoCmd` (#21248) --- cli/tests/integration/compile_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests/integration/compile_tests.rs') diff --git a/cli/tests/integration/compile_tests.rs b/cli/tests/integration/compile_tests.rs index 78249079d..1d0a36145 100644 --- a/cli/tests/integration/compile_tests.rs +++ b/cli/tests/integration/compile_tests.rs @@ -3,6 +3,7 @@ use test_util as util; use util::assert_contains; use util::assert_not_contains; +use util::testdata_path; use util::TestContext; use util::TestContextBuilder; @@ -705,7 +706,7 @@ fn dynamic_import_unanalyzable() { context .new_command() - .cwd(util::root_path().join("cli")) + .current_dir(util::root_path().join("cli")) .name(&exe) .env("NO_COLOR", "") .run() @@ -935,11 +936,10 @@ fn run_npm_bin_compile_test(opts: RunNpmBinCompileOptions) { let context = TestContextBuilder::for_npm().use_temp_cwd().build(); let temp_dir = context.temp_dir(); - let testdata_path = context.testdata_path(); let main_specifier = if opts.input_specifier.starts_with("npm:") { opts.input_specifier.to_string() } else { - testdata_path.join(opts.input_specifier).to_string() + testdata_path().join(opts.input_specifier).to_string() }; let mut args = vec!["compile".to_string()]; -- cgit v1.2.3