Files
Multi-Hoster-Upload/tests/dev-runner.test.js
T
Sucukdeluxe d7c9f287e4
CI / verify (push) Has been cancelled
release: restore v2.1.19 baseline for v2.1.24
Restore the v2.1.19 application baseline and retain only the focused import preflight summary with duplicate, unavailable, destination, job, and size-limit visibility.
2026-08-17 04:25:22 +02:00

12 lines
490 B
JavaScript

const test = require('node:test');
const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
test('dev runner cannot let an old child exit clear the current Electron process', () => {
const source = fs.readFileSync(path.join(__dirname, '..', 'scripts', 'dev-runner.cjs'), 'utf8');
assert.match(source, /const startedChild = spawn\(electron/u);
assert.match(source, /if \(child !== startedChild\) return;\s*child = null;/u);
});