summaryrefslogtreecommitdiff
path: root/cli/tests/integration/compile_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-11-17 22:46:15 -0500
committerGitHub <noreply@github.com>2023-11-17 22:46:15 -0500
commitc213ad380f349dee1f65e6d9a9f7a8fa669b2af2 (patch)
tree9265e433c2691bf39c699617b87f755c1d025908 /cli/tests/integration/compile_tests.rs
parent4a2d8c4bbd20cc282b4df42fe5da6414447315e0 (diff)
chore: combine `TestCommandBuilder` with `DenoCmd` (#21248)
Diffstat (limited to 'cli/tests/integration/compile_tests.rs')
-rw-r--r--cli/tests/integration/compile_tests.rs6
1 files changed, 3 insertions, 3 deletions
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()];