Skip to content

Commit

Permalink
Update test/test-find-visualstudio.js
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
StefanStojanovic and cclauss authored Apr 8, 2024
1 parent 591f31c commit b113c39
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/test-find-visualstudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ class TestVisualStudioFinder extends VisualStudioFinder {
}
}

// Only run "Find Visual Studio" tests on Windows.
if (process.platform !== 'win32') {
return
}
const shouldSkip = process.platform !== 'win32'

describe('find-visualstudio', function () {
if (shouldSkip) {
return
}

this.beforeAll(function () {
// Condition to skip the test suite
if (process.env.SystemRoot === undefined) {
Expand Down

0 comments on commit b113c39

Please sign in to comment.