Skip to content

Commit bcdc9b0

Browse files
Merge pull request #12879 from isaac2004/12872-work
Fix ng test issue with Angular Template 12872
2 parents ab02951 + 17dc254 commit bcdc9b0

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"polyfills": "src/polyfills.ts",
7272
"tsConfig": "src/tsconfig.spec.json",
7373
"karmaConfig": "src/karma.conf.js",
74-
"styles": ["styles.css"],
74+
"styles": ["src/styles.css"],
7575
"scripts": [],
7676
"assets": ["src/assets"]
7777
}

src/ProjectTemplates/test/SpaTemplateTest/SpaTemplateTestBase.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,8 @@ protected async Task SpaTemplateImplAsync(
6767
using var lintResult = await ProcessEx.RunViaShellAsync(Output, clientAppSubdirPath, "npm run lint");
6868
Assert.True(0 == lintResult.ExitCode, ErrorMessages.GetFailedProcessMessage("npm run lint", Project, lintResult));
6969

70-
if (template == "react" || template == "reactredux")
71-
{
72-
using var testResult = await ProcessEx.RunViaShellAsync(Output, clientAppSubdirPath, "npm run test");
73-
Assert.True(0 == testResult.ExitCode, ErrorMessages.GetFailedProcessMessage("npm run test", Project, testResult));
74-
}
70+
var testResult = await ProcessEx.RunViaShellAsync(Output, clientAppSubdirPath, "npm run test");
71+
Assert.True(0 == testResult.ExitCode, ErrorMessages.GetFailedProcessMessage("npm run test", Project, testResult));
7572

7673
using var publishResult = await Project.RunDotNetPublishAsync();
7774
Assert.True(0 == publishResult.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", Project, publishResult));

0 commit comments

Comments
 (0)