We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fb7ac7 commit c7c99a2Copy full SHA for c7c99a2
1 file changed
e2e/scenarios/genkit-instrumentation/assertions.ts
@@ -3,6 +3,7 @@ import type { Json } from "../../helpers/normalize";
3
import type { CapturedLogEvent } from "../../helpers/mock-braintrust-server";
4
import {
5
formatJsonFileSnapshot,
6
+ matchFileSnapshot,
7
resolveFileSnapshotPath,
8
} from "../../helpers/file-snapshot";
9
@@ -303,11 +304,12 @@ export function defineGenkitInstrumentationAssertions(options: {
303
304
);
305
306
test("matches span snapshot", testConfig, async () => {
- await expect(
307
+ await matchFileSnapshot(
308
formatJsonFileSnapshot(
309
buildSpanSummary(events, options.supportsActionSpans),
310
),
- ).toMatchFileSnapshot(spanSnapshotPath);
311
+ spanSnapshotPath,
312
+ );
313
});
314
315
}
0 commit comments