From a4f8dde09e4f3e235615cefeecfee17b308814ae Mon Sep 17 00:00:00 2001 From: Mehul Kar Date: Tue, 30 Jul 2024 15:32:40 -0500 Subject: [PATCH] test --- .../src/global_deps_package_change_mapper.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/turborepo-lib/src/global_deps_package_change_mapper.rs b/crates/turborepo-lib/src/global_deps_package_change_mapper.rs index 8661f30a47cd9..3d686c4955e5b 100644 --- a/crates/turborepo-lib/src/global_deps_package_change_mapper.rs +++ b/crates/turborepo-lib/src/global_deps_package_change_mapper.rs @@ -63,7 +63,9 @@ mod tests { use tempfile::tempdir; use turbopath::{AbsoluteSystemPath, AnchoredSystemPathBuf}; use turborepo_repository::{ - change_mapper::{ChangeMapper, DefaultPackageChangeMapper, PackageChanges}, + change_mapper::{ + AllPackageChangeReason, ChangeMapper, DefaultPackageChangeMapper, PackageChanges, + }, discovery, discovery::PackageDiscovery, package_graph::{PackageGraphBuilder, WorkspacePackage}, @@ -117,7 +119,10 @@ mod tests { // We should return All because we don't have global deps and // therefore must be conservative about changes - assert_eq!(package_changes, PackageChanges::All); + assert_eq!( + package_changes, + PackageChanges::All(AllPackageChangeReason::NonPackageFileChanged) + ); let turbo_package_detector = GlobalDepsPackageChangeMapper::new(&pkg_graph, std::iter::empty::<&str>())?;