d3ro-voice/apps/mobile-rn/__mocks__/whisper-rn.js
2026-08-29 18:33:45 +09:00

14 lines
354 B
JavaScript

const unconfigured = () => {
throw new Error('whisper.rn test mock was invoked without an explicit transcription fixture');
};
const context = {
transcribe: jest.fn(unconfigured),
release: jest.fn(async () => undefined),
};
module.exports = {
initWhisper: jest.fn(async () => context),
WhisperContext: jest.fn(),
__mockContext: context,
};