test(artifacts): share file read setup and satisfy CI checks

This commit is contained in:
64579525
2026-10-13 15:46:10 +08:00
parent f6748a511e
commit 577d6c3e9b
2 changed files with 25 additions and 33 deletions
@@ -196,9 +196,9 @@ itWithCaptureCapability(
result.value.frames.map(({ at_ms }) => at_ms),
"capture-relative frame times stay ordered and nonnegative",
).toEqual(
result.value.frames.map(({ at_ms }) => at_ms).sort(
(left, right) => left - right,
),
result.value.frames
.map(({ at_ms }) => at_ms)
.sort((left, right) => left - right),
);
expect(result.value.frames.every(({ at_ms }) => at_ms >= 0)).toBe(true);
expect(result.value.exit.reason).toBe("exited");