mirror of
https://github.com/Foundry376/Mailspring.git
synced 2026-10-14 00:49:13 +02:00
* Add a CalendarDate type for all-day events * Route all-day shifts in ics-event-helpers through CalendarDate * Give occurrences inclusive covered dates * Pin a default timezone for the test runner * Load-bearing stored dates * Collapse exclusiveAllDayEnd into nextDayStartUnix * Reconcile covered-date derivations, restore transition coverage * fix comment * Guard fix
23 lines
826 B
JavaScript
23 lines
826 B
JavaScript
#!/usr/bin/env node
|
|
const { spawn } = require('child_process');
|
|
const electron = require('electron');
|
|
|
|
// Pinned so the suite doesn't run in whatever zone the machine happens to be in. CI has no TZ
|
|
// of its own, i.e. UTC, where a local date component read is indistinguishable from a UTC one —
|
|
// so the calendar's zone handling would go unverified there. Set as a default rather than an
|
|
// override, so `TZ=America/Santiago npm test` still works for chasing a zone-specific bug.
|
|
const DEFAULT_TZ = 'America/Chicago';
|
|
|
|
const child = spawn(electron, ['./app', '--enable-logging', ...process.argv.slice(2)], {
|
|
stdio: 'inherit',
|
|
env: Object.assign({ TZ: DEFAULT_TZ }, process.env),
|
|
});
|
|
|
|
child.on('exit', (code, signal) => {
|
|
if (signal) {
|
|
process.kill(process.pid, signal);
|
|
} else {
|
|
process.exit(code);
|
|
}
|
|
});
|