We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d29ba92 commit e8fafe7Copy full SHA for e8fafe7
src/core/transpile.test.ts
@@ -44,4 +44,9 @@ describe("transpile", () => {
44
const result = transpile("", "defineRoute", null);
45
expect(result).not.toContain("require(\"zod\");");
46
});
47
+
48
+ it("should inject a placeholder function for the middleware", () => {
49
+ const result = transpile("", "defineRoute", "myAwesomeMiddleware");
50
+ expect(result).toContain("var myAwesomeMiddleware = function (handler) { return handler; };");
51
+ });
52
0 commit comments