Files
Find-Word/tests/generator.test.ts
T

15 lines
620 B
TypeScript

// @vitest-environment node
import { spawnSync } from "node:child_process";
import { expect, it } from "vitest";
// Python 경계 테스트도 npm test에 포함한다. provider 호출은 fake이며 ffmpeg
// 변환과 Linux 원자 디렉터리 교체는 실제로 실행한다. 외부 네트워크는 쓰지 않는다.
it("neural 생성기의 실패 보존·retry·PCM·비밀값 부재 계약", () => {
const result = spawnSync(
"python3",
["-m", "unittest", "discover", "-s", "tests/python", "-v"],
{ encoding: "utf8" },
);
expect(result.status, result.stdout + result.stderr).toBe(0);
}, 60_000);