14 lines
354 B
JavaScript
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,
|
|
};
|