Skip to content

Commit bd2ff2f

Browse files
committed
feat: optimize test running
1 parent ac84681 commit bd2ff2f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

tests/e2e/utils.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,13 @@ export async function waitTestServer() {
191191
}
192192
}
193193

194-
export async function runTest(targets, cb) {
195-
for (const target of targets) {
196-
const client = await getBrowserClient(target);
197-
await cb(client);
198-
}
194+
export function runTest(targets, cb) {
195+
return Promise.all(
196+
targets.map(async target => {
197+
const client = await getBrowserClient(target);
198+
await cb(client);
199+
}),
200+
);
199201
}
200202

201203
export async function saveRule(popup, rule) {

0 commit comments

Comments
 (0)