Skip to content

Commit

Permalink
drop test hook for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 15, 2024
1 parent 9597866 commit f207148
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
11 changes: 0 additions & 11 deletions src/presets/cloudflare/runtime/cloudflare-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,6 @@ export default <ExportedHandler<Env>>{
})
);
},

test(controller, env, context) {
(globalThis as any).__env__ = env;
context.waitUntil(
nitroApp.hooks.callHook("cloudflare:test", {
controller,
env,
context,
})
);
},
};

function assetsCacheControl(_request: Request) {
Expand Down
6 changes: 0 additions & 6 deletions src/presets/cloudflare/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type {
MessageBatch,
ScheduledController,
TraceItem,
TestController,
} from "@cloudflare/workers-types";
import type { Config as WranglerConfig } from "./types.wrangler";

Expand Down Expand Up @@ -90,10 +89,5 @@ declare module "nitropack/types" {
env: unknown;
context: ExecutionContext;
}) => void;
"cloudflare:test": (_: /* ExportedHandlerTestHandler */ {
controller: TestController;
env: unknown;
context: ExecutionContext;
}) => void;
}
}

0 comments on commit f207148

Please sign in to comment.