Skip to content

Commit 1ddc85b

Browse files
committed
escape hatch e2e tests
1 parent d073c97 commit 1ddc85b

17 files changed

+422
-23
lines changed

e2e/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ info:
55
tags:
66
- name: request headers
77
- name: validation
8+
- name: escape hatches
89
servers:
910
- url: '{protocol}://{host}:{port}'
1011
variables:
@@ -98,6 +99,17 @@ paths:
9899
responses:
99100
500:
100101
description: Internal Server Error
102+
/escape-hatches/plain-text:
103+
get:
104+
tags:
105+
- escape hatches
106+
responses:
107+
200:
108+
description: 'ok'
109+
content:
110+
text/plain:
111+
schema:
112+
type: string
101113
/responses/empty:
102114
get:
103115
tags:

e2e/src/express.entrypoint.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {type NextFunction, type Request, type Response, Router} from "express"
22
import {bootstrap} from "./generated/server/express"
3+
import {createEscapeHatchesRouter} from "./routes/express/escape-hatches"
34
import {createRequestHeadersRouter} from "./routes/express/request-headers"
45
import {createValidationRouter} from "./routes/express/validation"
56
import {createErrorResponse} from "./shared"
@@ -9,9 +10,11 @@ function createRouter() {
910

1011
const requestHeadersRouter = createRequestHeadersRouter()
1112
const validationRouter = createValidationRouter()
13+
const escapeHatchesRouter = createEscapeHatchesRouter()
1214

1315
router.use(requestHeadersRouter)
1416
router.use(validationRouter)
17+
router.use(escapeHatchesRouter)
1518

1619
return router
1720
}

e2e/src/generated/client/axios/client.ts

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/src/generated/client/fetch/client.ts

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/src/generated/server/express/routes/escape-hatches.ts

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/src/generated/server/express/routes/request-headers.ts

Lines changed: 17 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/src/generated/server/express/routes/validation.ts

Lines changed: 33 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)