diff --git a/build/ci/templates/test_phases.yml b/build/ci/templates/test_phases.yml index 04f1aca37743..c822fe73c1e6 100644 --- a/build/ci/templates/test_phases.yml +++ b/build/ci/templates/test_phases.yml @@ -112,6 +112,17 @@ steps: displayName: 'code hygiene' condition: and(succeeded(), contains(variables['TestsToRun'], 'runHygiene')) + # Run the typescript unit tests. + # + # This will only run if the string 'testUnitTests' exists in variable `TestsToRun` + # + # Example command line (windows pwsh): + # > npm run test:unittests + - bash: | + npm run test:unittests + displayName: 'run test:unittest' + condition: and(succeeded(), contains(variables['TestsToRun'], 'testUnitTests')) + # Upload the test results to Azure DevOps to facilitate test reporting in their UX. - task: PublishTestResults@2 displayName: 'Publish test:unittest results' diff --git a/src/test/application/diagnostics/checks/invalidLaunchJsonDebugger.unit.test.ts b/src/test/application/diagnostics/checks/invalidLaunchJsonDebugger.unit.test.ts index ce6cf3d52899..eeba414f9846 100644 --- a/src/test/application/diagnostics/checks/invalidLaunchJsonDebugger.unit.test.ts +++ b/src/test/application/diagnostics/checks/invalidLaunchJsonDebugger.unit.test.ts @@ -369,7 +369,7 @@ suite('Application Diagnostics - Checks if launch.json is invalid', () => { fs.setup(w => w.writeFile(TypeMoq.It.isAnyString(), correctedlaunchJson)) .returns(() => Promise.resolve()) .verifiable(TypeMoq.Times.once()); - await (diagnosticService as any).fixLaunchJson(DiagnosticCodes.InvalidDebuggerTypeDiagnostic); + await (diagnosticService as any).fixLaunchJson(DiagnosticCodes.ConsoleTypeDiagnostic); workspaceService.verifyAll(); fs.verifyAll(); });