From b9ba2bd0437f25ffc24cc83b78ddce51090ffe49 Mon Sep 17 00:00:00 2001 From: yv01p Date: Sat, 13 Dec 2025 00:19:02 +0000 Subject: [PATCH] fix(tests): configure golden test data to copy to output directory Previously, the golden-mappings.json file in the TestData directory was not being copied to the output directory, causing golden tests to skip silently when the file couldn't be found at runtime. Added ItemGroup configuration to Umbraco.Tests.UnitTests.csproj to copy all JSON files from Umbraco.Core\Strings\TestData\ to the output directory using PreserveNewest, ensuring the golden test data is available for test execution. Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj b/tests/Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj index 13e59d5417..a111d5bd71 100644 --- a/tests/Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj +++ b/tests/Umbraco.Tests.UnitTests/Umbraco.Tests.UnitTests.csproj @@ -51,4 +51,10 @@ ContentExtensionsTests.cs + + + + PreserveNewest + +