mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 14:27:26 +00:00
* 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
11 lines
408 B
TypeScript
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");
|
|
});
|