feat(setup-install): run with --no-interaction

This commit is contained in:
Damien Retzinger
2026-05-27 15:39:46 -04:00
parent 91bd008e62
commit 32a5fd2bad
3 changed files with 7 additions and 1 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+5
View File
@@ -8,6 +8,7 @@ const BASE_ARGS = [
'--admin-firstname=Admin', '--admin-firstname=Admin',
'--admin-lastname=User', '--admin-lastname=User',
'--backend-frontname=admin', '--backend-frontname=admin',
'--no-interaction',
]; ];
const MYSQL_SERVICE = { const MYSQL_SERVICE = {
@@ -60,6 +61,10 @@ describe('buildInstallArgs', () => {
it('returns only base args when services is empty', () => { it('returns only base args when services is empty', () => {
expect(buildInstallArgs({})).toEqual(BASE_ARGS); expect(buildInstallArgs({})).toEqual(BASE_ARGS);
}); });
it('runs non-interactively', () => {
expect(buildInstallArgs(null)).toContain('--no-interaction');
});
}); });
describe('mysql', () => { describe('mysql', () => {
+1
View File
@@ -24,6 +24,7 @@ const BASE_ARGS = [
'--admin-firstname=Admin', '--admin-firstname=Admin',
'--admin-lastname=User', '--admin-lastname=User',
'--backend-frontname=admin', '--backend-frontname=admin',
'--no-interaction',
]; ];
const parsePort = (svc: ServiceConfig | undefined, index: 0 | 1, fallback: string): string => { const parsePort = (svc: ServiceConfig | undefined, index: 0 | 1, fallback: string): string => {