Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 0 additions & 133 deletions apps/desktop/e2e/code-scroll.spec.ts

This file was deleted.

13 changes: 12 additions & 1 deletion apps/desktop/scripts/vite-workspace-packages.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ test('renderer-facing Runtime Host protocol does not load Node crypto', async (t
configFile: false,
root,
logLevel: 'silent',
server: { host: '127.0.0.1', port: 0 },
// One request, one assertion — nothing here reacts to a file changing. A
// watcher would, and this root is the real repository: `close()` returns
// before its recursive scan finishes, and the unfinished fs requests keep
// the process alive until the workspace suite hits its own timeout.
server: { host: '127.0.0.1', port: 0, watch: null },
optimizeDeps: { noDiscovery: true, include: [] },
plugins: [workspacePackagesPlugin(repoRoot)],
});
Expand All @@ -102,5 +106,12 @@ test('renderer-facing Runtime Host protocol does not load Node crypto', async (t
const transformed = await response.text();

assert.equal(response.status, 200, transformed);
// A missing dist is served as the SPA fallback, and index.html trivially
// satisfies the assertion below. Say so instead of passing.
assert.doesNotMatch(
transformed,
/^<!doctype html>/iu,
'Vite served the SPA fallback; build @maka/runtime-host first',
);
assert.doesNotMatch(transformed, /vite-browser-external:node:crypto/u);
});