File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,22 @@ import { readdirSync } from "fs";
1414// Get a list of e2e test files, each of which should have an associated script
1515const e2eTests = readdirSync ( "packages/wrangler/e2e" ) ;
1616
17- const tasks = new Set < string > ( ) ;
17+ const tasks = new Map < string , string > ( ) ;
1818
1919for ( const file of e2eTests ) {
2020 // Ignore other files in the e2e directory (the README, for instance)
2121 if ( file . endsWith ( ".test.ts" ) ) {
22- tasks . add (
22+ tasks . set (
23+ file ,
2324 `pnpm test:e2e --log-order=stream --output-logs=new-only --summarize --filter wrangler --concurrency 1 -- run ./e2e/${ file } `
2425 ) ;
2526 }
2627}
2728
28- for ( const task of tasks . values ( ) ) {
29+ for ( const [ file , task ] of tasks . entries ( ) ) {
30+ console . log ( "::group::Testing: " + file ) ;
2931 execSync ( task , {
3032 stdio : "inherit" ,
3133 } ) ;
34+ console . log ( "::endgroup::" ) ;
3235}
You can’t perform that action at this time.
0 commit comments