UNPKG

301 BJavaScriptView Raw
1export async function run(suites, opts={}) {
2 globalThis.UVU_DEFER = 1;
3 const uvu = await import('uvu');
4
5 let suite, idx=0;
6 for (suite of suites) {
7 globalThis.UVU_INDEX = idx++;
8 globalThis.UVU_QUEUE.push([suite.name]);
9 await import('file:///' + suite.file);
10 }
11
12 await uvu.exec(opts.bail);
13}