Files
astra-mobile/scripts/run-release-tests.mjs
2026-08-11 19:38:38 -04:00

42 lines
922 B
JavaScript

import { spawnSync } from 'node:child_process';
const TEST_SCRIPTS = [
'test:release-config',
'test:press-feedback',
'test:queue-actions',
'test:desktop-remote',
'test:dynamic-playlists',
'test:album-grouping',
'test:artist-grouping',
'test:desktop-sync',
'test:eq-share',
'test:signal',
'test:eq-math',
'test:eq-layout',
'test:audio-startup',
'test:seek-bar',
'test:lyrics',
'test:sleep',
'test:troubleshooting',
'test:fuzzy-search',
'test:settings-search',
'test:now-playing-layout',
'test:memory-lifecycle',
'test:ui-navigation',
'test:library-layout',
'test:haptics',
'test:home-greeting',
'test:session',
'test:library-scan',
];
for (const script of TEST_SCRIPTS) {
const result = spawnSync('npm', ['run', script], {
stdio: 'inherit',
shell: process.platform === 'win32',
});
if (result.status !== 0) {
process.exit(result.status ?? 1);
}
}