fix tests
This commit is contained in:
parent
9594e963bc
commit
07f3bf04ca
@ -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: |
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user