Files
hyperframes/packages/cli/src/utils/checkProgress.test.ts
T
Miguel Ángel 55cbc0e158 feat(cli): check writes a progress line to stderr per sample, overlap batch and craft frame (#6151)
* feat(cli): check writes a progress line to stderr per sample, overlap batch and craft frame

* fix(cli): the check progress lines are written by the CLI, not by the pipeline tests call
2026-10-23 22:14:44 +00:00

11 lines
408 B
TypeScript

import { afterEach, expect, it, vi } from "vitest";
import { logCheckProgress } from "./checkProgress.js";
afterEach(() => vi.restoreAllMocks());
it("writes one stderr line naming the stage and the count", () => {
const stderr = vi.spyOn(console, "error").mockImplementation(() => {});
logCheckProgress("samples", 3, 12);
expect(stderr).toHaveBeenCalledWith("[hyperframes] check: samples 3/12");
});