mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-12 05:10:52 +02:00
42 lines
922 B
JavaScript
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);
|
|
}
|
|
}
|