Skip to content

Commit c7c99a2

Browse files
committed
.
1 parent 5fb7ac7 commit c7c99a2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

e2e/scenarios/genkit-instrumentation/assertions.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Json } from "../../helpers/normalize";
33
import type { CapturedLogEvent } from "../../helpers/mock-braintrust-server";
44
import {
55
formatJsonFileSnapshot,
6+
matchFileSnapshot,
67
resolveFileSnapshotPath,
78
} from "../../helpers/file-snapshot";
89
import {
@@ -303,11 +304,12 @@ export function defineGenkitInstrumentationAssertions(options: {
303304
);
304305

305306
test("matches span snapshot", testConfig, async () => {
306-
await expect(
307+
await matchFileSnapshot(
307308
formatJsonFileSnapshot(
308309
buildSpanSummary(events, options.supportsActionSpans),
309310
),
310-
).toMatchFileSnapshot(spanSnapshotPath);
311+
spanSnapshotPath,
312+
);
311313
});
312314
});
313315
}

0 commit comments

Comments
 (0)