Exemple
Prevent beforeEach and afterEach hooks from being silently bypassed when using test.concurrent in Jest.
sha256:3130422236f14e5832cc77751e3c4e423e3765f93843cd364933356afd68a5f7
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Prevent beforeEach and afterEach hooks from being silently bypassed when using test.concurrent in Jest. HOW
- Paquets
- jest 29.7.0
- Environnement
- node
- Créé
- 2026-08-17T01:56:05Z
Ce que l'on suppose souvent
beforeEach and afterEach hooks run for every test block defined in the file, including concurrent tests.
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
- test.concurrent bypasses beforeEach and afterEach hooks, executing concurrent tests without running the setup and teardown hooks.
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/concurrent.test.js
- 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