Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { spawnSync } from "node:child_process";
import path from "node:path";
import { describe, expect, it } from "vitest";
describe("skills/sherpa-onnx-tts bin script", () => {
it("loads as ESM and falls through to usage output when env is missing", () => {
const scriptPath = path.resolve(
process.cwd(),
"skills",
"sherpa-onnx-tts",
"bin",
"sherpa-onnx-tts",
);
const result = spawnSync(process.execPath, [scriptPath], {
encoding: "utf8",
});
expect(result.status).toBe(1);
expect(result.stderr).toContain("Missing runtime/model directory.");
expect(result.stderr).toContain("Usage: sherpa-onnx-tts");
expect(result.stderr).not.toContain("require is not defined in ES module scope");
});
});
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland