diff --git a/build/dependencies.props b/build/dependencies.props
index 3d47919aed..bbf1f0cb6c 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -25,6 +25,7 @@
2.1.0-preview1-27625
2.1.0-preview1-27625
2.1.0-preview1-27625
+ 2.1.0-preview1-27625
2.1.0-preview1-27625
2.0.0
2.1.0-preview1-25907-02
diff --git a/test/Templates.Test/Helpers/ProcessEx.cs b/test/Templates.Test/Helpers/ProcessEx.cs
index 554e1d7498..31840eddc9 100644
--- a/test/Templates.Test/Helpers/ProcessEx.cs
+++ b/test/Templates.Test/Helpers/ProcessEx.cs
@@ -1,4 +1,5 @@
-using System;
+using Microsoft.Extensions.Internal;
+using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
@@ -136,8 +137,7 @@ namespace Templates.Test.Helpers
{
if (_process != null && !_process.HasExited)
{
- _process.Kill();
- _process.WaitForExit(5000);
+ _process.KillTree();
}
}
diff --git a/test/Templates.Test/SpaTemplateTest/SpaTemplateTestBase.cs b/test/Templates.Test/SpaTemplateTest/SpaTemplateTestBase.cs
index c61cbdaa3e..cf00f6eb52 100644
--- a/test/Templates.Test/SpaTemplateTest/SpaTemplateTestBase.cs
+++ b/test/Templates.Test/SpaTemplateTest/SpaTemplateTestBase.cs
@@ -26,7 +26,9 @@ namespace Templates.Test.SpaTemplateTest
// For some SPA templates, the NPM root directory is './ClientApp'. In other
// templates it's at the project root. Strictly speaking we shouldn't have
// to do the NPM restore in tests because it should happen automatically at
- // build time, but the tests run a lot faster this way because we can use Yarn.
+ // build time, but by doing it up front we can avoid having multiple NPM
+ // installs run concurrently which otherwise causes errors when tests run
+ // in parallel.
if (File.Exists(Path.Combine(TemplateOutputDir, "ClientApp", "package.json")))
{
InstallNpmPackages("ClientApp");
diff --git a/test/Templates.Test/Templates.Test.csproj b/test/Templates.Test/Templates.Test.csproj
index d93039022c..e0b09e10f3 100644
--- a/test/Templates.Test/Templates.Test.csproj
+++ b/test/Templates.Test/Templates.Test.csproj
@@ -8,6 +8,7 @@
+