@@ -30,14 +30,11 @@ export const alphabetically = (a: unknown, b: unknown) => {
3030
3131/** Find every mjs file in the suites folder */
3232async function getBenchmarks ( ) : Promise < {
33- tests : Record < string , Record < string , { benchFile : string } & Record < string , any > > > ;
33+ tests : Record < string , Record < string , string > > ;
3434 total : number ;
3535} > {
3636 let total = 0 ;
37- const tests : Record <
38- string ,
39- Record < string , { benchFile : string } & Record < string , any > >
40- > = Object . create ( null ) ;
37+ const tests : Record < string , Record < string , string > > = Object . create ( null ) ;
4138 const suites = await fs . readdir ( path . join ( __dirname , 'suites' ) ) ;
4239 suites . sort ( alphabetically ) ;
4340
@@ -48,7 +45,7 @@ async function getBenchmarks(): Promise<{
4845 for ( const benchmark of benchmarks ) {
4946 if ( ! benchmark . endsWith ( '.mjs' ) ) continue ;
5047 tests [ suite ] ??= Object . create ( null ) ;
51- tests [ suite ] [ benchmark ] = { benchFile : path . join ( 'suites' , suite , benchmark ) } ;
48+ tests [ suite ] [ benchmark ] = path . join ( 'suites' , suite , benchmark ) ;
5249 total += 1 ;
5350 }
5451 }
@@ -89,7 +86,7 @@ const results = [];
8986for ( const [ suite , benchmarks ] of Object . entries ( tests ) ) {
9087 console . group ( snakeToCamel ( suite ) ) ;
9188
92- for ( const [ benchmark , { benchFile } ] of Object . entries ( benchmarks ) ) {
89+ for ( const [ benchmark , benchFile ] of Object . entries ( benchmarks ) ) {
9390 console . log ( snakeToCamel ( path . basename ( benchmark , '.mjs' ) ) ) ;
9491
9592 const runner = child_process . fork ( runnerPath , [ benchFile ] , { stdio : 'inherit' } ) ;
0 commit comments