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:
parent
738d199e8a
commit
541c9bd13c
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue