windows: Fix tests on Windows (#22616)

Release Notes:

- N/A

---------

Co-authored-by: Mikayla <mikayla.c.maki@gmail.com>
This commit is contained in:
张小白 2025-02-05 22:30:09 +08:00 committed by GitHub
parent c252b5db16
commit 74c4dbd237
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 1540 additions and 856 deletions

View file

@ -595,6 +595,7 @@ mod tests {
use project::{project_settings::ProjectSettings, Project};
use serde_json::json;
use settings::SettingsStore;
use util::path;
use workspace::{open_paths, AppState};
use super::*;
@ -615,7 +616,7 @@ mod tests {
.fs
.as_fake()
.insert_tree(
"/dir",
path!("/dir"),
json!({
"main.ts": "a"
}),
@ -623,7 +624,7 @@ mod tests {
.await;
cx.update(|cx| {
open_paths(
&[PathBuf::from("/dir/main.ts")],
&[PathBuf::from(path!("/dir/main.ts"))],
app_state,
workspace::OpenOptions::default(),
cx,