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>> { ...@@ -248,7 +248,7 @@ async fn prepare_test(resource: RcStr) -> Result<Vc<PreparedTest>> {
path: path.to_resolved().await?, path: path.to_resolved().await?,
project_path: project_path.to_resolved().await?, project_path: project_path.to_resolved().await?,
tests_path: tests_path.to_resolved().await?, tests_path: tests_path.to_resolved().await?,
project_root: project_root.to_resolved().await?, project_root,
options, options,
} }
.cell()) .cell())
...@@ -320,7 +320,7 @@ async fn run_test(prepared_test: Vc<PreparedTest>) -> Result<Vc<RunTestResult>> ...@@ -320,7 +320,7 @@ async fn run_test(prepared_test: Vc<PreparedTest>) -> Result<Vc<RunTestResult>>
import_externals: true, import_externals: true,
..Default::default() ..Default::default()
}, },
preset_env_versions: Some(env.to_resolved().await?), preset_env_versions: Some(env),
tree_shaking_mode: options.tree_shaking_mode, tree_shaking_mode: options.tree_shaking_mode,
rules: vec![( rules: vec![(
ContextCondition::InDirectory("node_modules".into()), ContextCondition::InDirectory("node_modules".into()),
......
...@@ -296,7 +296,7 @@ async fn run_test(resource: RcStr) -> Result<Vc<FileSystemPath>> { ...@@ -296,7 +296,7 @@ async fn run_test(resource: RcStr) -> Result<Vc<FileSystemPath>> {
css: CssOptionsContext { css: CssOptionsContext {
..Default::default() ..Default::default()
}, },
preset_env_versions: Some(env.to_resolved().await?), preset_env_versions: Some(env),
rules: vec![( rules: vec![(
ContextCondition::InDirectory("node_modules".into()), ContextCondition::InDirectory("node_modules".into()),
ModuleOptionsContext { ModuleOptionsContext {
...@@ -357,8 +357,8 @@ async fn run_test(resource: RcStr) -> Result<Vc<FileSystemPath>> { ...@@ -357,8 +357,8 @@ async fn run_test(resource: RcStr) -> Result<Vc<FileSystemPath>> {
project_root, project_root,
path, path,
path, path,
chunk_root_path.to_resolved().await?, chunk_root_path,
static_root_path.to_resolved().await?, static_root_path,
env, env,
options.runtime_type, 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