File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,14 +19,26 @@ export class BrowserRunner {
1919 /**
2020 * Check if browser environment needs setup
2121 */
22- async needsSetup ( workDir : string , _context ?: RunnerContext ) : Promise < boolean > {
22+ async needsSetup ( workDir : string , context ?: RunnerContext ) : Promise < boolean > {
2323 const nodeModulesPath = path . join ( workDir , "node_modules" ) ;
2424 try {
2525 await fs . access ( nodeModulesPath ) ;
26- return false ;
2726 } catch {
2827 return true ;
2928 }
29+
30+ // Verify all required packages are actually installed
31+ if ( context ?. framework ?. dependencies ) {
32+ for ( const dep of context . framework . dependencies ) {
33+ try {
34+ await fs . access ( path . join ( nodeModulesPath , dep . package ) ) ;
35+ } catch {
36+ return true ;
37+ }
38+ }
39+ }
40+
41+ return false ;
3042 }
3143
3244 /**
Original file line number Diff line number Diff line change @@ -16,14 +16,26 @@ export class CloudflareRunner {
1616 /**
1717 * Check if Cloudflare environment needs setup
1818 */
19- async needsSetup ( workDir : string , _context ?: RunnerContext ) : Promise < boolean > {
19+ async needsSetup ( workDir : string , context ?: RunnerContext ) : Promise < boolean > {
2020 const nodeModulesPath = path . join ( workDir , "node_modules" ) ;
2121 try {
2222 await fs . access ( nodeModulesPath ) ;
23- return false ;
2423 } catch {
2524 return true ;
2625 }
26+
27+ // Verify all required packages are actually installed
28+ if ( context ?. framework ?. dependencies ) {
29+ for ( const dep of context . framework . dependencies ) {
30+ try {
31+ await fs . access ( path . join ( nodeModulesPath , dep . package ) ) ;
32+ } catch {
33+ return true ;
34+ }
35+ }
36+ }
37+
38+ return false ;
2739 }
2840
2941 /**
Original file line number Diff line number Diff line change @@ -15,14 +15,26 @@ export class JavaScriptRunner {
1515 /**
1616 * Check if JavaScript environment needs setup
1717 */
18- async needsSetup ( workDir : string , _context ?: RunnerContext ) : Promise < boolean > {
18+ async needsSetup ( workDir : string , context ?: RunnerContext ) : Promise < boolean > {
1919 const nodeModulesPath = path . join ( workDir , "node_modules" ) ;
2020 try {
2121 await fs . access ( nodeModulesPath ) ;
22- return false ;
2322 } catch {
2423 return true ;
2524 }
25+
26+ // Verify all required packages are actually installed
27+ if ( context ?. framework ?. dependencies ) {
28+ for ( const dep of context . framework . dependencies ) {
29+ try {
30+ await fs . access ( path . join ( nodeModulesPath , dep . package ) ) ;
31+ } catch {
32+ return true ;
33+ }
34+ }
35+ }
36+
37+ return false ;
2638 }
2739
2840 /**
Original file line number Diff line number Diff line change 2121 "version" : " latest"
2222 }
2323 ],
24- "versions" : [" 1.14 .0" ],
24+ "versions" : [" 1.21 .0" ],
2525 "sentryVersions" : [" latest" ],
2626 "skip" : {
2727 "tests" : [" Long Input Agent Test" ],
Original file line number Diff line number Diff line change 1717 "version" : " latest"
1818 }
1919 ],
20- "versions" : [" 1.14 .0" ],
20+ "versions" : [" 1.21 .0" ],
2121 "sentryVersions" : [" latest" ]
2222}
You can’t perform that action at this time.
0 commit comments