Skip to content

Commit 21ee3f4

Browse files
committed
fix 14
1 parent 28164a6 commit 21ee3f4

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

tests/e2e/src/vscode.runner.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,21 @@ import { VScodeScripts } from './helpers/scripts/vscodeScripts'
5555
installDependencies: true,
5656
})
5757
}
58-
console.log(
59-
'Test Files to run: ',
60-
(
61-
process.env.TEST_FILES ||
62-
path.join(__dirname, '..', 'dist', 'tests', '**', '*.js')
63-
).split('\n'),
64-
)
58+
59+
const testFilesEnv = process.env.TEST_FILES;
60+
if (testFilesEnv) {
61+
const fullPaths = testFilesEnv.split('\n').map((file) => {
62+
return path.join(__dirname, '..', 'dist', file);
63+
});
64+
65+
console.log('Full Paths:', fullPaths);
66+
} else {
67+
console.error('TEST_FILES environment variable is not defined.');
68+
}
69+
6570
// Run tests
6671
await exTester.runTests(
67-
(
68-
process.env.TEST_FILES ||
69-
path.join(__dirname, '..', 'dist', 'tests', '**', '*.js')
70-
).split('\n'),
72+
testFilesEnv || path.join(__dirname, '..', 'dist', 'tests', '**', '*.js'),
7173
{
7274
settings: 'settings.json',
7375
logLevel: logging.Level.INFO,

0 commit comments

Comments
 (0)