Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(e2e): the guard spec's IPC stand-in names its return type (FEHLER-Q4 #3)

purple34ca51a4ccdf
diff --git a/e2e/html-preview-guard.spec.ts b/e2e/html-preview-guard.spec.ts
index e50ab90b..22a4a2de 100644
--- a/e2e/html-preview-guard.spec.ts
+++ b/e2e/html-preview-guard.spec.ts
@@ -41,14 +41,14 @@ function tauriLike(key: string) {
;(function () {
const __TAURI_INVOKE_KEY__ = key
let failed = false
- function sendIpcMessage(message: { cmd: string; payload: unknown; options?: { headers?: Record<string, string> } }) {
+ function sendIpcMessage(message: { cmd: string; payload: unknown; options?: { headers?: Record<string, string> } }): Promise<unknown> {
if (!failed) {
const headers = new Headers((message.options && message.options.headers) || {})
headers.set('Content-Type', 'application/json')
headers.set('Tauri-Invoke-Key', __TAURI_INVOKE_KEY__)
return fetch('http://ipc.localhost/' + message.cmd, { method: 'POST', body: JSON.stringify(message.payload), headers }).then(
(r) => r,
- () => {
+ (): Promise<unknown> => {
failed = true
return sendIpcMessage(message)
},