Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn committed Dec 30, 2024
1 parent b314f78 commit 4cbb637
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/workspace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4855,23 +4855,23 @@ mod test {

#[test]
fn test_resolve_file_patterns_for_members() {
let mut fs = TestFileSystem::default();
fs.insert_json(
let sys = InMemorySys::default();
sys.fs_insert_json(
root_dir().join("deno.json"),
json!({
"workspace": ["./member-a", "./member-b", "member-c"],
"exclude": ["./excluded.ts", "./member-b/excluded.ts", "./member-c/excluded"],
}),
);
fs.insert_json(
sys.fs_insert_json(
root_dir().join("member-a/deno.json"),
json!({
"exclude": ["./excluded.ts"],
}),
);
fs.insert_json(root_dir().join("member-b/deno.json"), json!({}));
fs.insert_json(root_dir().join("member-c/deno.json"), json!({}));
let workspace_dir = workspace_at_start_dir(&fs, &root_dir());
sys.fs_insert_json(root_dir().join("member-b/deno.json"), json!({}));
sys.fs_insert_json(root_dir().join("member-c/deno.json"), json!({}));
let workspace_dir = workspace_at_start_dir(&sys, &root_dir());
let mut patterns_by_dir = workspace_dir
.workspace
.resolve_file_patterns_for_members(&FilePatterns {
Expand Down

0 comments on commit 4cbb637

Please sign in to comment.