File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ export async function runAllBenchmarks() {
2828 return ;
2929 }
3030
31- const majorVersion = getNodeMajorVersion ( ) ;
3231 const allResults : BenchmarkResult [ ] = [ ] ;
3332
3433 for ( const [ benchmark , benchmarks ] of getRegisteredBenchmarks ( ) ) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async function main() {
1717
1818 const caseNames = args . length ? args : cases . cases ;
1919
20- for ( let c of caseNames ) {
20+ for ( const c of caseNames ) {
2121 if ( c === 'spectypes' ) {
2222 // hack: manually run the spectypes compilation step - avoids
2323 // having to run it before any other benchmark, esp when working
@@ -48,7 +48,7 @@ async function main() {
4848 {
4949 const caseNames = args as cases . CaseName [ ] ;
5050
51- for ( let c of caseNames ) {
51+ for ( const c of caseNames ) {
5252 console . log ( 'Loading "%s"' , c ) ;
5353
5454 await cases . importCase ( c ) ;
@@ -60,6 +60,8 @@ async function main() {
6060
6161 default :
6262 console . error ( 'unknown command:' , command ) ;
63+
64+ // eslint-disable-next-line no-process-exit
6365 process . exit ( 1 ) ;
6466 }
6567}
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ import '../cases/zod';
3535test ( 'all cases must have been imported in tests' , ( ) => {
3636 const registeredCases = new Set < string > ( ) ;
3737
38- getRegisteredBenchmarks ( ) . forEach ( ( [ benchmarkId , benchmarkCases ] ) => {
39- benchmarkCases . forEach ( b => {
38+ getRegisteredBenchmarks ( ) . forEach ( nameBenchmarkPair => {
39+ nameBenchmarkPair [ 1 ] . forEach ( b => {
4040 registeredCases . add ( b . moduleName ) ;
4141 } ) ;
4242 } ) ;
You can’t perform that action at this time.
0 commit comments