Exemplo
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
Caso
- Objetivo
- Demonstrate that Babel throws a generic Error when an unknown plugin name is used, contrary to the expected PluginError HOW
- Pacotes
- @babel/core 7.24.0
- Ambiente
- node
- Criado
- 2026-08-17T03:14:14Z
O que costuma-se supor
Providing an unknown plugin name to Babel’s transformSync throws a PluginError named 'PluginError'
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- assert.notStrictEqual(error.name, 'PluginError')
Arquivos
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9