test: move tauri helpers into domain folder

- Move tests/helpers/tauri-mocks.ts → tests/helpers/tauri/mocks.ts
- Move tests/helpers/tauri-fig-export-fixture.ts → tests/helpers/tauri/fig-export-fixture.ts
- Update all imports
This commit is contained in:
Danila Poyarkov 2026-05-06 16:16:08 +03:00
parent 738d199e8a
commit 541c9bd13c
10 changed files with 8 additions and 8 deletions

View file

@ -2,7 +2,7 @@ import { describe, test, expect, vi, beforeEach, afterEach } from 'bun:test'
import { openExternalLink } from '@/app/shell/ui'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri-mocks'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri/mocks'
/**
* Tests for the browser (window.open) path only.

View file

@ -4,7 +4,7 @@ import { readReloadSource } from '@/app/document/io/reload-source'
import { chooseTauriFigSavePath } from '@/app/document/io/save-targets'
import { createDocumentWriter } from '@/app/document/io/write'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri-mocks'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri/mocks'
afterEach(async () => {
await clearTauriMocks()

View file

@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'
describe('Tauri fig export', () => {
test('delegates fig archive construction to the Tauri Rust command', async () => {
const proc = Bun.spawn(['bun', 'tests/helpers/tauri-fig-export-fixture.ts'], {
const proc = Bun.spawn(['bun', 'tests/helpers/tauri/fig-export-fixture.ts'], {
stdout: 'pipe',
stderr: 'pipe'
})

View file

@ -4,7 +4,7 @@ import { saveExportedFile } from '@/app/document/export/files'
import { watchTauriFile } from '@/app/document/io/watch-targets'
import { chooseTauriOpenPath, readTauriDesignFile } from '@/app/shell/menu/files'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri-mocks'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri/mocks'
afterEach(async () => {
await clearTauriMocks()

View file

@ -2,7 +2,7 @@ import { afterEach, describe, expect, test } from 'bun:test'
import { clearDownloadedFontCache, downloadedFontCacheSummary } from '@/app/editor/fonts/cache'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri-mocks'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri/mocks'
const encoder = new TextEncoder()

View file

@ -2,7 +2,7 @@ import { afterEach, describe, expect, test, vi } from 'bun:test'
import { fontManager } from '@open-pencil/core/text'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri-mocks'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri/mocks'
class MockFontFace {
family: string

View file

@ -5,7 +5,7 @@ import { ref } from 'vue'
import { spawnAcpProcess } from '@/app/ai/acp/process'
import { checkForAppUpdate } from '@/app/shell/updater'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri-mocks'
import { clearTauriMocks, mockTauriIPC } from '#tests/helpers/tauri/mocks'
afterEach(async () => {
await clearTauriMocks()

View file

@ -5,7 +5,7 @@ import { createACPTransport } from '@/app/ai/chat/transports'
import { ensureTauriParentDirectory } from '@/app/automation/bridge/file-handlers'
import { spawnMCPIfNeeded } from '@/app/automation/mcp/spawn'
import { clearTauriMocks, installTauriMockWindow, mockTauriIPC } from '#tests/helpers/tauri-mocks'
import { clearTauriMocks, installTauriMockWindow, mockTauriIPC } from '#tests/helpers/tauri/mocks'
afterEach(async () => {
await clearTauriMocks()