()
| 55 | }; |
| 56 | |
| 57 | export const setupWorkerTest = async (): Promise<void> => { |
| 58 | await reset(); |
| 59 | clearMetadataCachesForTest(); |
| 60 | installArtifactBuilderMock(testEnv); |
| 61 | await applyD1Migrations( |
| 62 | testEnv.STATS, |
| 63 | ( |
| 64 | testEnv as Env & { |
| 65 | TEST_MIGRATIONS: Parameters<typeof applyD1Migrations>[1]; |
| 66 | } |
| 67 | ).TEST_MIGRATIONS, |
| 68 | ); |
| 69 | await seedMetadata(testEnv); |
| 70 | }; |
| 71 | |
| 72 | const serializeHeaders = (response: Response): Record<string, string> => { |
| 73 | const result: Record<string, string> = {}; |
no test coverage detected