forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-kg-viewer-e2e.mjs
More file actions
20 lines (17 loc) · 885 Bytes
/
Copy pathrun-kg-viewer-e2e.mjs
File metadata and controls
20 lines (17 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Build the app, then run the Knowledge-Graph viewer (PR10) E2E against the real
// built main process. Hermetic: the /v3/memories + /v1/knowledge-graph calls are
// served from fixtures via page.route(), with a catch-all that aborts anything
// unmatched — it never touches a real backend or real account data. Screenshots
// land in .playwright-mcp/pr10/ for an independent reviewer.
import { execFileSync } from 'node:child_process'
import { fileURLToPath } from 'node:url'
import path from 'node:path'
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
const NO_BUILD = process.argv.includes('--no-build')
if (!NO_BUILD) {
execFileSync('npx', ['electron-vite', 'build'], { stdio: 'inherit', cwd: root, shell: true })
}
execFileSync('node', ['--test', '--test-timeout=180000', 'e2e/knowledge-graph.spec.mjs'], {
stdio: 'inherit',
cwd: root
})