Beispiel
Demonstrate that Babel throws a generic Error when an unknown plugin name is used, contrary to the expected PluginError
sha256:46868fdc59f3c16f9dbd8dd754526c9fe4c8b9a188fc09a984a2de528082f8cd
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Demonstrate that Babel throws a generic Error when an unknown plugin name is used, contrary to the expected PluginError HOW
- Pakete
- @babel/core 7.24.0
- Umgebung
- node
- Erstellt
- 2026-08-17T03:14:14Z
Häufige Annahme
Providing an unknown plugin name to Babel’s transformSync throws a PluginError named 'PluginError'
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
- assert.notStrictEqual(error.name, 'PluginError')
Dateien
- 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