deploy: v0.12 存档迁移+考古日志滚动条

This commit is contained in:
2026-06-24 03:04:38 +00:00
parent 4831505ef9
commit b4c6111516
58986 changed files with 7569452 additions and 31667 deletions
+2
View File
@@ -0,0 +1,2 @@
import type { Suite } from 'uvu/parse';
export function run(suites: Suite[], options?: { bail: boolean }): Promise<void>;
+12
View File
@@ -0,0 +1,12 @@
exports.run = async function (suites, opts={}) {
globalThis.UVU_DEFER = 1;
const uvu = require('uvu');
suites.forEach((suite, idx) => {
globalThis.UVU_QUEUE.push([suite.name]);
globalThis.UVU_INDEX = idx;
require(suite.file);
});
await uvu.exec(opts.bail);
}
+13
View File
@@ -0,0 +1,13 @@
export async function run(suites, opts={}) {
globalThis.UVU_DEFER = 1;
const uvu = await import('uvu');
let suite, idx=0;
for (suite of suites) {
globalThis.UVU_INDEX = idx++;
globalThis.UVU_QUEUE.push([suite.name]);
await import('file:///' + suite.file);
}
await uvu.exec(opts.bail);
}