d9fbecf5a7
Move audio scrub/volume and brush drafts off root React ticks, coalesce overlay layout IPC, cache machine fingerprint and asset URLs, share one scene overlay host, and stop idle Pixi ticker. Also harden console against EPIPE on window load failures. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
704 B
TypeScript
17 lines
704 B
TypeScript
import assert from 'node:assert/strict';
|
|
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import test from 'node:test';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
void test('main: EPIPE guards ставятся до app.whenReady', () => {
|
|
const index = fs.readFileSync(path.join(here, 'index.ts'), 'utf8');
|
|
const safe = fs.readFileSync(path.join(here, 'safeConsole.ts'), 'utf8');
|
|
assert.ok(index.includes('installStdoutEpipeGuards'));
|
|
assert.ok(index.indexOf('installStdoutEpipeGuards()') < index.indexOf('app.requestSingleInstanceLock'));
|
|
assert.ok(safe.includes('EPIPE'));
|
|
assert.ok(safe.includes('safeConsoleError'));
|
|
});
|