Unverified Commit b2219d64 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

fix unnecessary to_resolved calls in test cases (#73501)

### What?

These cases cause warnings by the new check.
parent 1ddc35de
......@@ -248,7 +248,7 @@ async fn prepare_test(resource: RcStr) -> Result<Vc<PreparedTest>> {
path: path.to_resolved().await?,
project_path: project_path.to_resolved().await?,
tests_path: tests_path.to_resolved().await?,
project_root: project_root.to_resolved().await?,
project_root,
options,
}
.cell())
......@@ -320,7 +320,7 @@ async fn run_test(prepared_test: Vc<PreparedTest>) -> Result<Vc<RunTestResult>>
import_externals: true,
..Default::default()
},
preset_env_versions: Some(env.to_resolved().await?),
preset_env_versions: Some(env),
tree_shaking_mode: options.tree_shaking_mode,
rules: vec![(
ContextCondition::InDirectory("node_modules".into()),
......
......@@ -296,7 +296,7 @@ async fn run_test(resource: RcStr) -> Result<Vc<FileSystemPath>> {
css: CssOptionsContext {
..Default::default()
},
preset_env_versions: Some(env.to_resolved().await?),
preset_env_versions: Some(env),
rules: vec![(
ContextCondition::InDirectory("node_modules".into()),
ModuleOptionsContext {
......@@ -357,8 +357,8 @@ async fn run_test(resource: RcStr) -> Result<Vc<FileSystemPath>> {
project_root,
path,
path,
chunk_root_path.to_resolved().await?,
static_root_path.to_resolved().await?,
chunk_root_path,
static_root_path,
env,
options.runtime_type,
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment