MCPcopy Create free account
hub / github.com/TanStack/db / postHarnessMessage

Function postHarnessMessage

packages/tauri-db-sqlite-persistence/e2e/app/src/main.ts:22–36  ·  view source on GitHub ↗
(
  payload: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

20}
21
22async function postHarnessMessage(
23 payload: Record<string, unknown>,
24): Promise<void> {
25 if (!reportUrl) {
26 return
27 }
28
29 await fetch(reportUrl, {
30 method: `POST`,
31 headers: {
32 'content-type': `application/json`,
33 },
34 body: JSON.stringify(payload),
35 })
36}
37
38async function reportRunResult(result: {
39 status: `passed` | `failed`

Callers 2

reportRunResultFunction · 0.85
reportStatusFunction · 0.85

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected