Exemple
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
Cas
- Objectif
- Prove that Express 4 removes `app.configure`, so env-specific bootstrap code must be written without it. HOW
- Paquets
- express 4.19.1
- Environnement
- node
- Créé
- 2026-08-17T03:16:33Z
Ce que l'on suppose souvent
A seasoned developer expects `app.configure(...)` to remain available in Express 4 as it did in v3.
L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.
Contrat
- 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.
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9