fix tests
Some checks failed
🏗️ Build and Test JellyTau / Build Android APK (push) Has been cancelled
🏗️ Build and Test JellyTau / Run Tests (push) Has been cancelled
Traceability Validation / Check Requirement Traces (push) Failing after 1s

This commit is contained in:
Duncan Tourolle 2026-02-14 17:15:53 +01:00
parent 9594e963bc
commit 07f3bf04ca
3 changed files with 10 additions and 8 deletions

View File

@ -99,6 +99,12 @@ jobs:
- name: Build frontend
run: bun run build
- name: Initialize Android project
run: |
cd src-tauri
echo "" | bunx tauri android init
cd ..
- name: Build Android APK
id: build
run: |

View File

@ -2,11 +2,9 @@ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { invoke } from "@tauri-apps/api/core";
import { RepositoryClient } from "./repository-client";
const mockInvoke = vi.fn();
vi.mock("@tauri-apps/api/core");
vi.mock("@tauri-apps/api/core", () => ({
invoke: mockInvoke,
}));
const mockInvoke = vi.mocked(invoke);
/**
* Integration tests documenting Phase 1 & 2 refactoring:

View File

@ -2,11 +2,9 @@ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { invoke } from "@tauri-apps/api/core";
import { RepositoryClient } from "./repository-client";
const mockInvoke = vi.fn();
vi.mock("@tauri-apps/api/core");
vi.mock("@tauri-apps/api/core", () => ({
invoke: mockInvoke,
}));
const mockInvoke = vi.mocked(invoke);
describe("RepositoryClient", () => {
let client: RepositoryClient;