File tree 3 files changed +6
-5
lines changed
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() {
28
28
return ;
29
29
}
30
30
31
- const majorVersion = getNodeMajorVersion ( ) ;
32
31
const allResults : BenchmarkResult [ ] = [ ] ;
33
32
34
33
for ( const [ benchmark , benchmarks ] of getRegisteredBenchmarks ( ) ) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async function main() {
17
17
18
18
const caseNames = args . length ? args : cases . cases ;
19
19
20
- for ( let c of caseNames ) {
20
+ for ( const c of caseNames ) {
21
21
if ( c === 'spectypes' ) {
22
22
// hack: manually run the spectypes compilation step - avoids
23
23
// having to run it before any other benchmark, esp when working
@@ -48,7 +48,7 @@ async function main() {
48
48
{
49
49
const caseNames = args as cases . CaseName [ ] ;
50
50
51
- for ( let c of caseNames ) {
51
+ for ( const c of caseNames ) {
52
52
console . log ( 'Loading "%s"' , c ) ;
53
53
54
54
await cases . importCase ( c ) ;
@@ -60,6 +60,8 @@ async function main() {
60
60
61
61
default :
62
62
console . error ( 'unknown command:' , command ) ;
63
+
64
+ // eslint-disable-next-line no-process-exit
63
65
process . exit ( 1 ) ;
64
66
}
65
67
}
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ import '../cases/zod';
35
35
test ( 'all cases must have been imported in tests' , ( ) => {
36
36
const registeredCases = new Set < string > ( ) ;
37
37
38
- getRegisteredBenchmarks ( ) . forEach ( ( [ benchmarkId , benchmarkCases ] ) => {
39
- benchmarkCases . forEach ( b => {
38
+ getRegisteredBenchmarks ( ) . forEach ( nameBenchmarkPair => {
39
+ nameBenchmarkPair [ 1 ] . forEach ( b => {
40
40
registeredCases . add ( b . moduleName ) ;
41
41
} ) ;
42
42
} ) ;
You can’t perform that action at this time.
0 commit comments