refactor(core): migrate to Bun and converge acquisition policies and Agent boundaries
This commit is contained in:
1 parent
3f1c6d02f6
commit
27c0f27434
268 files changed
+7468
-7852
No files matched your search
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "@umt/testkit",
|
||||
"version": "0.3.44",
|
||||
"exports": { ".": "./src/index.ts" },
|
||||
"tasks": {
|
||||
"test": "deno run -A npm:vitest run",
|
||||
"typecheck": "deno run -A npm:typescript/tsc --noEmit -p tsconfig.json"
|
||||
}
|
||||
}
|
||||
@@ -4,5 +4,11 @@
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
}
|
||||
},
|
||||
"version": "0.3.44",
|
||||
"scripts": {
|
||||
"test": "bun x --bun vitest run",
|
||||
"typecheck": "bun x --bun tsc --noEmit -p tsconfig.json"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ export interface MockFetchRequest {
|
||||
}
|
||||
|
||||
export interface MockFetch {
|
||||
fetch: typeof globalThis.fetch;
|
||||
fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
||||
requests: MockFetchRequest[];
|
||||
/** 追加/覆盖路由 */
|
||||
route(key: string, handler: MockRouteHandler): void;
|
||||
@@ -87,7 +87,7 @@ export function createMockFetch(routes: Record<string, MockRouteHandler> = {}):
|
||||
return new Response("not found", { status: 404 });
|
||||
};
|
||||
return {
|
||||
fetch: fetchImpl as typeof globalThis.fetch,
|
||||
fetch: fetchImpl as (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>,
|
||||
requests,
|
||||
route(key, handler) {
|
||||
table.delete(key);
|
||||
|
||||
Reference in new issue
Block a user