Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sets up GitHub Actions for ElevenLabs TTS projects with mocked unit tests on every push and quota-gated integration tests.
39% 74%+35 ptsof test cases passed
Passed 17 of 23 test cases with the skill, and 9 of 23 without it.
What GitHub CLI command triggers the ElevenLabs test workflow on demand without pushing code?
Runs gh workflow run elevenlabs-tests.yml
3 of 3 safety checks passed
Complete test code for both tiers plus the package scripts that wire them together. SKILL.md shows a minimal mock skeleton; this file is the full, copy-paste source.
// tests/unit/tts-service.test.ts
import { describe, it, expect, vi, beforeEach } from "vitest";
// Mock the entire SDK — no API calls, no quota usage
vi.mock("@elevenlabs/elevenlabs-js", () => ({
ElevenLabsClient: vi.fn().mockImplementation(() => ({
textToSpeech: {
convert: vi.fn().mockResolvedValue(
new ReadableStream({
start(controller) {
controller.enqueue(new Uint8Array([0xFF, 0xFB, 0x90, 0x00])); // MP3 header
controller.close();
},
})
),
stream: vi.fn().mockImplementation(async function* () {
yield new Uint8Array([0xFF, 0xFB, 0x90, 0x00]);
}),
},
voices: {
getAll: vi.fn().mockResolvedValue({
voices: [
{ voice_id: "21m00Tcm4TlvDq8ikWAM", name: "Rachel", category: "premade" },
],
}),
},
user: {
get: vi.fn().mockResolvedValue({
subscription: { tier: "pro", character_count: 1000, character_limit: 500000 },
}),
},
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.