Enhance service visibility configuration in snapshot tests

- Added `ignoreHiddenServices: true` and a comprehensive list of `visibleServices` to multiple snapshot test files to improve service visibility management during testing.
- Refactored logging in the `diff.lua` file to streamline the trace output for hidden services, enhancing clarity in the sync process.
This commit is contained in:
Joe 2026-02-01 18:28:31 -06:00
parent b368eb2401
commit 0eb135ee15
26 changed files with 487 additions and 54 deletions

View file

@ -417,10 +417,7 @@ local function diff(instanceMap, virtualInstances, rootId, serverInfo)
-- so we shouldn't mark them for deletion during forward sync.
if serverInfo and serverInfo.ignoreHiddenServices and instance == game then
if not visibleServicesSet[childInstance.Name] then
Log.trace(
"Skipping hidden service {} (ignoreHiddenServices is enabled)",
childInstance.Name
)
Log.trace("Skipping hidden service {} (ignoreHiddenServices is enabled)", childInstance.Name)
continue
end
end