Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import browser from './browser.ts'; import server from './server.ts'; type Load = (...params: unknown[]) => Promise<{ start: (config?: unknown) => Promise<unknown>; test: () => Promise<unknown>; stop: () => Promise<unknown>; }>; export default async (load: Load): Promise<void> => { const platforms: Awaited<ReturnType<typeof load>>[] = await Promise.all([ load(server, 'test', 'test', ['microservice', 'integration', 'dev']), load(browser, 'test', 'test', ['microservice', 'integration', 'dev']), ]); for (const platform of platforms) await platform.start(); await platforms[1].test(); if (process.env.CI) for (const platform of platforms) await platform.stop(); }; |