From 7a606a46bbf743e3c85ebd8c34c40cc0ffd48d6f Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Mon, 8 Jan 2018 18:32:20 -0800 Subject: [PATCH] Update SPA tests to skip npm-restore --- build/BundledRuntimes.props | 17 +++++++++-------- .../GivenThatIWantANewAppWithSpecifiedType.cs | 2 ++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/build/BundledRuntimes.props b/build/BundledRuntimes.props index 8fd7cc78c..0b08edcf0 100644 --- a/build/BundledRuntimes.props +++ b/build/BundledRuntimes.props @@ -28,18 +28,19 @@ linux-x64 dotnet-runtime-$(MicrosoftNETCoreAppPackageVersion)-$(SharedFrameworkRid)$(ArchiveExtension) - $(SharedFrameworkRid) - linux-x64 - linux-x64 - $(CoreSetupRid) - $(CoreSetupRid) + $(SharedFrameworkRid) + linux-x64 + linux-x64 + $(AspNetCoreSharedFxInstallerRid) + $(CoreSetupRid) + $(CoreSetupRid) - aspnetcore-runtime-$(AspNetCoreVersion)-$(AspNetCoreSharedFrameworkRid)$(InstallerExtension) + aspnetcore-runtime-$(AspNetCoreVersion)-$(AspNetCoreSharedFxInstallerRid)$(InstallerExtension) - aspnetcore-runtime-internal-$(AspNetCoreVersion)-$(AspNetCoreSharedFrameworkRid).wixlib + aspnetcore-runtime-internal-$(AspNetCoreVersion)-$(AspNetCoreSharedFxInstallerRid).wixlib $(PackagesDirectory)/$(DownloadedAspNetCoreSharedFxInstallerFileName) - aspnetcore-runtime-internal-$(AspNetCoreVersion)-$(SharedFrameworkRid)$(ArchiveExtension) + aspnetcore-runtime-internal-$(AspNetCoreVersion)-$(AspNetCoreSharedFxArchiveRid)$(ArchiveExtension) $(PackagesDirectory)/$(AspNetCoreSharedFxArchiveFileName) diff --git a/test/dotnet-new.Tests/GivenThatIWantANewAppWithSpecifiedType.cs b/test/dotnet-new.Tests/GivenThatIWantANewAppWithSpecifiedType.cs index e1c1fea85..6be4d1b0e 100644 --- a/test/dotnet-new.Tests/GivenThatIWantANewAppWithSpecifiedType.cs +++ b/test/dotnet-new.Tests/GivenThatIWantANewAppWithSpecifiedType.cs @@ -59,6 +59,8 @@ namespace Microsoft.DotNet.New.Tests // Not all CI machines have Node installed, so the build would fail if we tried // to run Webpack. Bypass this by making it appear that Webpack already ran. Directory.CreateDirectory(Path.Combine(rootPath, "wwwroot", "dist")); + Directory.CreateDirectory(Path.Combine(rootPath, "ClientApp", "node_modules")); + Directory.CreateDirectory(Path.Combine(rootPath, "node_modules")); } new TestCommand("dotnet")