openpencil/tests/engine/tauri/fig-export.test.ts
Danila Poyarkov 541c9bd13c 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
2026-05-06 16:16:08 +03:00

18 lines
569 B
TypeScript

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'], {
stdout: 'pipe',
stderr: 'pipe'
})
const [stdout, stderr, exitCode] = await Promise.all([
new Response(proc.stdout).text(),
new Response(proc.stderr).text(),
proc.exited
])
expect({ exitCode, stdout, stderr }).toEqual({ exitCode: 0, stdout: '', stderr: '' })
})
})