We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 353593b commit bfb95e2Copy full SHA for bfb95e2
packages/tinybench-plugin/src/index.ts
@@ -30,7 +30,11 @@ export function withCodSpeed(bench: Bench): Bench {
30
const rawAdd = bench.add;
31
bench.add = (name, fn, opts?) => {
32
const callingFile = getCallingFile();
33
- const uri = `${callingFile}::${name}`;
+ let uri = callingFile;
34
+ if (bench.name !== undefined) {
35
+ uri += `::${bench.name}`;
36
+ }
37
+ uri += `::${name}`;
38
uriMap.set(name, uri);
39
return rawAdd.bind(bench)(name, fn, opts);
40
};
0 commit comments