Add account deletion cleanup route

This commit is contained in:
2026-05-09 06:50:22 -04:00
parent a8d2688020
commit 91821a0fc9
7 changed files with 724 additions and 1 deletions
+6
View File
@@ -14,6 +14,7 @@ export interface TestEnvOptions {
diagnosticEvents?: ElyAnalyticsDataPoint[];
d1?: RecordedD1Database;
kvEntries?: [string, string][];
kvDeletes?: string[];
kvReads?: string[];
r2Deletes?: string[];
r2Gets?: string[];
@@ -50,6 +51,11 @@ export function testEnv(options: TestEnvOptions): Env {
options.kvReads?.push(key);
return Promise.resolve(values.get(key) ?? null);
},
delete(key: string): Promise<void> {
options.kvDeletes?.push(key);
values.delete(key);
return Promise.resolve();
},
},
ELY_STORAGE: testR2Bucket(
options.r2Puts,