File size: 416 Bytes
b269533
 
 
 
 
 
 
0d13723
b269533
1
2
3
4
5
6
7
8
9
10
import assert from 'node:assert/strict';
import { execFile } from 'node:child_process';
import { promisify } from 'node:util';
const run = promisify(execFile);
const { stdout } = await run(process.execPath, ['benchmarks/run.mjs', process.cwd(), '--dry-run']);
const result = JSON.parse(stdout);
assert.equal(result.mode, 'dry-run');
assert.equal(result.rows.length, 15);
console.log('benchmark runner test passed');