Beispiel
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
Fall
- Ziel
- Prove that Express 4 removes `app.configure`, so env-specific bootstrap code must be written without it. HOW
- Pakete
- express 4.19.1
- Umgebung
- node
- Erstellt
- 2026-08-17T03:16:33Z
Häufige Annahme
A seasoned developer expects `app.configure(...)` to remain available in Express 4 as it did in v3.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- 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.
Dateien
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9