mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
chore(tests): test_util - Add PathRef
(#19450)
This adds a new `PathRef` struct to test_util for making it easier to work with paths in test code. I'm going to expand on this more in the future.
This commit is contained in:
parent
f3326eebd6
commit
7f15126f23
40 changed files with 778 additions and 719 deletions
|
@ -204,10 +204,10 @@ fn typecheck_core() {
|
|||
format!(
|
||||
"import \"{}\";",
|
||||
deno_core::resolve_path(
|
||||
util::root_path()
|
||||
.join("core/lib.deno_core.d.ts")
|
||||
.to_str()
|
||||
.unwrap(),
|
||||
&util::root_path()
|
||||
.join("core")
|
||||
.join("lib.deno_core.d.ts")
|
||||
.to_string(),
|
||||
&std::env::current_dir().unwrap()
|
||||
)
|
||||
.unwrap()
|
||||
|
@ -215,7 +215,7 @@ fn typecheck_core() {
|
|||
)
|
||||
.unwrap();
|
||||
|
||||
let args = vec!["run".to_string(), test_file.to_string_lossy().into_owned()];
|
||||
let args = vec!["run".to_string(), test_file.to_string()];
|
||||
let output = context.new_command().args_vec(args).split_output().run();
|
||||
|
||||
println!("stdout: {}", output.stdout());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue