fix: restore native image attachments

This commit is contained in:
lucaronin
2026-05-06 14:47:43 +02:00
parent 41ee40d427
commit 2e7c5cb433
6 changed files with 82 additions and 293 deletions

View File

@@ -1,9 +1,9 @@
import { readFileSync } from 'node:fs'
describe('Tauri drag/drop configuration', () => {
it('keeps native file drops enabled for path-aware app inputs', () => {
it('keeps browser file drops disabled so images use the native attachment path', () => {
const config = JSON.parse(readFileSync(`${process.cwd()}/src-tauri/tauri.conf.json`, 'utf8'))
expect(config.app.windows[0].dragDropEnabled).toBe(true)
expect(config.app.windows[0].dragDropEnabled).toBe(false)
})
})