Exemple
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
Cas
- Objectif
- Demonstrate that Babel throws a generic Error when an unknown plugin name is used, contrary to the expected PluginError HOW
- Paquets
- @babel/core 7.24.0
- Environnement
- node
- Créé
- 2026-08-17T03:14:14Z
Ce que l'on suppose souvent
Providing an unknown plugin name to Babel’s transformSync throws a PluginError named 'PluginError'
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
- assert.notStrictEqual(error.name, 'PluginError')
Fichiers
- 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