Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/core/test/loggers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,10 @@ describe("JSONConsoleLogger", () => {
expect(imageBlock.type).toBe("image");
expect(imageBlock.data).toBe("<omitted>");
expect(imageBlock.size).toBe(fakeJpeg.byteLength);
// Raw byte array must not appear in the output
expect(output).not.toContain("255"); // 0xff byte value
// Raw byte array must not appear in the output. Match the serialized
// byte sequence rather than a bare "255" — the latter collides with
// the millisecond timestamp in the output and makes this test flaky.
expect(output).not.toContain("255,216,255"); // raw fakeJpeg bytes
});

it("should preserve raw image data when sanitizeGenerationImages is false", () => {
Expand Down
Loading