From 233eec56efe4a8c62d0e75235b55b52e09541bf8 Mon Sep 17 00:00:00 2001 From: Gregor MacLennan Date: Sat, 3 Aug 2024 21:37:12 +0100 Subject: [PATCH] cleanup --- bin/e2e-test.mjs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/bin/e2e-test.mjs b/bin/e2e-test.mjs index e14f74ec5..28becdb65 100755 --- a/bin/e2e-test.mjs +++ b/bin/e2e-test.mjs @@ -53,6 +53,8 @@ const response = await prompts([ } ]) +process.stdout.write('\n\n') + if (response.testType === 'cloud') { const { username, accessKey } = getUser(response) response.username = username @@ -99,7 +101,7 @@ const tasks = new Listr([ { title: 'Build app', task: async (ctx, task) => { - const execute = execa`npm run e2e:build` + const execute = execa`npm run build:test` execute.stdout.pipe(task.stdout()) await execute } @@ -133,20 +135,22 @@ const tasks = new Listr([ { title: 'Run tests on attached device/emulator', enabled: () => response.testType === 'local', - task: cliTask('npm run e2e:test-local'), + task: cliTask('npm run test:e2e-local'), rendererOptions: { persistentOutput: true, bottomBar: Infinity } }, { title: 'Install patched version of detox', enabled: () => response.testType === 'cloud', - task: cliTask( - 'npm i --no-save detox@npm:@avinashbharti97/detox@^20.1.2' - ) + task: cliTask('npm i --no-save detox@npm:@avinashbharti97/detox@^20.1.2') }, { title: 'Run tests on BrowserStack', enabled: () => response.testType === 'cloud', - task: async (ctx, task) => task.newListr(cloudTasks, { concurrent: 5 }), + task: async (ctx, task) => + task.newListr(cloudTasks, { + concurrent: 5, + rendererOptions: { collapseSubtasks: false } + }), rollback: cliTask('npm install --no-save detox') }, {