CI / verify (push) Has been cancelled
Restore the v2.1.19 application baseline and retain only the focused import preflight summary with duplicate, unavailable, destination, job, and size-limit visibility.
12 lines
490 B
JavaScript
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);
|
|
});
|