mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-23 06:41:13 +00:00
* refactor(test): split plugin SDK test helpers * fix(test): align plugin SDK test subpaths
20 lines
768 B
TypeScript
20 lines
768 B
TypeScript
// Microsoft tests cover microsoft plugin behavior.
|
|
import { isLiveTestEnabled } from "openclaw/plugin-sdk/test-live";
|
|
import { describe, expect, it } from "vitest";
|
|
import { buildMicrosoftSpeechProvider } from "./speech-provider.js";
|
|
|
|
const describeLive = isLiveTestEnabled() ? describe : describe.skip;
|
|
|
|
describeLive("microsoft plugin live", () => {
|
|
it("lists Edge speech voices", async () => {
|
|
const listVoices = buildMicrosoftSpeechProvider().listVoices;
|
|
if (!listVoices) {
|
|
throw new Error("expected Microsoft voice listing support");
|
|
}
|
|
const voices = await listVoices({ providerConfig: {} });
|
|
|
|
expect(voices.length).toBeGreaterThan(100);
|
|
expect(voices.map((voice) => voice.id)).toContain("en-US-MichelleNeural");
|
|
}, 60_000);
|
|
});
|