From 9c11c85ac5da67868201eebd4b6851f6acf7f0fd Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 19 Oct 2023 14:01:15 -0300 Subject: [PATCH] Enforce end-to-end tests to build with mocks... ... if using the .\tools\build\build-appx.ps1 script. --- tools/build/build-appx.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/build-appx.ps1 b/tools/build/build-appx.ps1 index e9a099c2d..bd21205c8 100644 --- a/tools/build/build-appx.ps1 +++ b/tools/build/build-appx.ps1 @@ -101,8 +101,8 @@ catch { Start-VsDevShell } -If ($mode -eq 'production' -and $null -ne $env:UP4W_TEST_WITH_MS_STORE_MOCK) { - Write-Warning "Building the app in Release mode with UP4W_TEST_WITH_MS_STORE_MOCK env var set may lead to build failure or surprising results. Value is $env:UP4W_TEST_WITH_MS_STORE_MOCK." +If ($mode -eq 'end_to_end_tests') { + $env:UP4W_TEST_WITH_MS_STORE_MOCK = 1 } msbuild.exe `