Skip to content

Commit cac3436

Browse files
committed
fix 16
1 parent 626aab7 commit cac3436

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/e2e/src/vscode.runner.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ import { VScodeScripts } from './helpers/scripts/vscodeScripts'
5656
})
5757
}
5858

59-
let testFilesEnv = process.env.TEST_FILES
60-
if (testFilesEnv) {
61-
testFilesEnv.split('\n').map(file => {
62-
testFilesEnv = path.join(__dirname, '..', 'dist', file)
63-
})
64-
console.log('Full Paths:', testFilesEnv)
59+
let testFilesEnv: string | string[] = process.env.TEST_FILES!;
60+
if (process.env.TEST_FILES) {
61+
testFilesEnv = process.env.TEST_FILES.split('\n').map((file) => {
62+
return path.join(__dirname, '..', 'dist', file);
63+
});
64+
65+
console.log('Full Paths:', testFilesEnv);
6566
} else {
66-
console.error('TEST_FILES environment variable is not defined.')
67+
console.error('TEST_FILES environment variable is not defined.');
6768
}
6869

6970
// Run tests

0 commit comments

Comments
 (0)