示例
Prove that Express 4 removes `app.configure`, so env-specific bootstrap code must be written without it.
sha256:e06c29db577a1fb2a48a4f5b01d70afb5a30f0d28ae56acf19a8476a2dd871bd
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Prove that Express 4 removes `app.configure`, so env-specific bootstrap code must be written without it. HOW
- 包
- express 4.19.1
- 环境
- node
- 创建时间
- 2026-08-17T03:16:33Z
常见的想当然
A seasoned developer expects `app.configure(...)` to remain available in Express 4 as it did in v3.
这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。
契约
- In Express 4.19.1, `app.configure` is undefined and calling `app.configure(...)` throws `TypeError`, showing the v3-style helper no longer exists.
- `express()` still returns a usable app object with `app.listen` present.
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9