Skip to content

Commit 4c4228b

Browse files
authored
Fix failing test on CI (microsoft#5309)
1 parent 9a858f8 commit 4c4228b

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

build/ci/templates/test_phases.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@ steps:
120120
displayName: 'code hygiene'
121121
condition: and(succeeded(), contains(variables['TestsToRun'], 'runHygiene'))
122122
123+
# Run the typescript unit tests.
124+
#
125+
# This will only run if the string 'testUnitTests' exists in variable `TestsToRun`
126+
#
127+
# Example command line (windows pwsh):
128+
# > npm run test:unittests
129+
- bash: |
130+
npm run test:unittests
131+
displayName: 'run test:unittest'
132+
condition: and(succeeded(), contains(variables['TestsToRun'], 'testUnitTests'))
133+
123134
# Upload the test results to Azure DevOps to facilitate test reporting in their UX.
124135
- task: PublishTestResults@2
125136
displayName: 'Publish test:unittest results'

src/test/application/diagnostics/checks/invalidLaunchJsonDebugger.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ suite('Application Diagnostics - Checks if launch.json is invalid', () => {
369369
fs.setup(w => w.writeFile(TypeMoq.It.isAnyString(), correctedlaunchJson))
370370
.returns(() => Promise.resolve())
371371
.verifiable(TypeMoq.Times.once());
372-
await (diagnosticService as any).fixLaunchJson(DiagnosticCodes.InvalidDebuggerTypeDiagnostic);
372+
await (diagnosticService as any).fixLaunchJson(DiagnosticCodes.ConsoleTypeDiagnostic);
373373
workspaceService.verifyAll();
374374
fs.verifyAll();
375375
});

0 commit comments

Comments
 (0)