summaryrefslogtreecommitdiff
path: root/cli/tests/integration/compile_tests.rs
diff options
context:
space:
mode:
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()];