Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Mar 4, 2024
1 parent e42fba3 commit facf6cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/turborepo-lib/src/global_deps_package_detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mod tests {
change_mapper::{ChangeMapper, DefaultPackageDetector, PackageChanges},
discovery,
discovery::PackageDiscovery,
package_graph::PackageGraphBuilder,
package_graph::{PackageGraphBuilder, WorkspacePackage},
package_json::PackageJson,
};

Expand Down Expand Up @@ -136,9 +136,12 @@ mod tests {
None,
)?;

// We shouldn't get any changes since we have global deps specified and
// We only get a root workspace change since we have global deps specified and
// README.md is not one of them
assert_eq!(package_changes, PackageChanges::Some(HashSet::new()));
assert_eq!(
package_changes,
PackageChanges::Some([WorkspacePackage::root()].into_iter().collect())
);

Ok(())
}
Expand Down

0 comments on commit facf6cd

Please sign in to comment.