From aa346476b93f6c06a84df7b2458a7a9c63c862e3 Mon Sep 17 00:00:00 2001 From: wtto00 Date: Fri, 10 May 2024 20:39:19 +0800 Subject: [PATCH] ci: test --- spec/afterStart.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/afterStart.test.ts b/spec/afterStart.test.ts index 97c77d7..272e338 100644 --- a/spec/afterStart.test.ts +++ b/spec/afterStart.test.ts @@ -6,12 +6,15 @@ const android = new Android({ debug: true }); let emulatorId = ''; beforeAll(async () => { const avds = await android.listAVDs(); + console.log('avds', avds); let avdName = ''; if (avds.length === 0) { avdName = `TestCreate_${Math.random().toString().substring(2)}`; const images = (await android.listImages()).filter((item) => item.target === 'default' && item.arch === 'x86_64'); + console.log('images', images); if (images.length === 0) return; await android.createAVD({ name: avdName, apiLevel: 31, force: false }); + console.log('avds', avds); } else { avdName = avds[0].Name; }