start mock of file bytes.

This commit is contained in:
Jordan Hewitt 2025-03-03 17:28:35 -08:00
parent 75b76efd33
commit 61e54ded3c
2 changed files with 17 additions and 0 deletions

View File

@ -8,6 +8,23 @@ import { Knex } from "knex";
const RENDER_TIME = 1000;
jest.mock('@/app/lib/whisper', () => {
const originalModule = jest.requireActual('@/app/lib/whisper');
return {
...originalModule,
Whisper: class {
constructor(...args) {
originalModule.Whisper.apply(this, args);
}
targetFile = {
bytes: jest.fn().mockReturnValue(new Uint8Array([/* mock data */])),
};
},
};
});
jest.mock("@/app/i18n/api", () => {
class LanguageServer {
fetchLanguages = () => {

Binary file not shown.