We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d7bc59 commit 69b046bCopy full SHA for 69b046b
benches/index.ts
@@ -16,11 +16,15 @@ async function main(): Promise<void> {
16
continue;
17
}
18
const suite: () => Promise<Summary> = (await import(suitePath)).default;
19
- await suite();
+ // Skip default exports that are not functions and are not called "main"
20
+ // They might be utility files
21
+ if (typeof suite === 'function' && suite.name === 'main') {
22
+ await suite();
23
+ }
24
25
// Concatenating metrics
26
const metricsPath = path.join(resultsPath, 'metrics.txt');
- await fs.promises.rm(metricsPath);
27
+ await fs.promises.rm(metricsPath, { force: true });
28
let concatenating = false;
29
for await (const metricPath of fsWalk(resultsPath)) {
30
// Skip over non-metrics files
0 commit comments