Update SPA tests to skip npm-restore

This commit is contained in:
Nate McMaster 2018-01-08 18:32:20 -08:00
parent 223bc83db7
commit 7a606a46bb
2 changed files with 11 additions and 8 deletions

View file

@ -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")