@@ -40,6 +40,33 @@ import { VScodeScripts } from './helpers/scripts/vscodeScripts'
40
40
// Install VSCode and Chromedriver
41
41
await exTester . downloadCode ( )
42
42
await exTester . downloadChromeDriver ( )
43
+
44
+ console . log ( `${ DEFAULT_STORAGE_FOLDER } contents:` )
45
+ const testResources = fs . readdirSync ( DEFAULT_STORAGE_FOLDER )
46
+ testResources . forEach ( item => {
47
+ const fullPath = path . join ( DEFAULT_STORAGE_FOLDER , item )
48
+ const stats = fs . statSync ( fullPath )
49
+ const type = stats . isDirectory ( ) ? '(directory)' : '(file)'
50
+ console . log ( `${ type } ${ item } ` )
51
+ } )
52
+
53
+ // Fix ChromeDriver path for selenium
54
+ const chromedriverSource = path . join (
55
+ DEFAULT_STORAGE_FOLDER ,
56
+ 'chromedriver-linux64' ,
57
+ 'chromedriver' ,
58
+ )
59
+ const chromedriverTarget = path . join ( DEFAULT_STORAGE_FOLDER , 'chromedriver' )
60
+
61
+ if ( fs . existsSync ( chromedriverSource ) ) {
62
+ fs . copyFileSync ( chromedriverSource , chromedriverTarget )
63
+ fs . chmodSync ( chromedriverTarget , 0o755 )
64
+ console . log ( `ChromeDriver moved to expected path: ${ chromedriverTarget } ` )
65
+ } else {
66
+ console . error ( `ChromeDriver binary not found at: ${ chromedriverSource } ` )
67
+ process . exit ( 1 )
68
+ }
69
+
43
70
// Install vsix if not installed yet
44
71
if ( ! fs . existsSync ( extensionDir ) ) {
45
72
await exTester . installVsix ( {
@@ -58,9 +85,11 @@ import { VScodeScripts } from './helpers/scripts/vscodeScripts'
58
85
59
86
let testFilesEnv : string | string [ ] = process . env . TEST_FILES !
60
87
if ( process . env . TEST_FILES ) {
61
- testFilesEnv = process . env . TEST_FILES . split ( '\n' ) . map ( file => file . trim ( ) ) . map ( ( file ) => {
62
- return path . join ( __dirname , '..' , file )
63
- } )
88
+ testFilesEnv = process . env . TEST_FILES . split ( '\n' )
89
+ . map ( file => file . trim ( ) )
90
+ . map ( file => {
91
+ return path . join ( __dirname , '..' , file )
92
+ } )
64
93
65
94
// Always prepend setup.js
66
95
const setupTestPath = path . join (
0 commit comments