From b113c39b8d1f41c053c3d633f85c48ae5bdf278e Mon Sep 17 00:00:00 2001 From: Stefan Stojanovic Date: Mon, 8 Apr 2024 12:34:38 +0200 Subject: [PATCH] Update test/test-find-visualstudio.js Co-authored-by: Christian Clauss --- test/test-find-visualstudio.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test-find-visualstudio.js b/test/test-find-visualstudio.js index 80cd56488c..41dd837830 100644 --- a/test/test-find-visualstudio.js +++ b/test/test-find-visualstudio.js @@ -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) {