CodeSampleX

Sample

Prevent beforeEach and afterEach hooks from being silently bypassed when using test.concurrent in Jest.

sha256:3130422236f14e5832cc77751e3c4e423e3765f93843cd364933356afd68a5f7

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Prevent beforeEach and afterEach hooks from being silently bypassed when using test.concurrent in Jest. HOW
Packages
jest 29.7.0
Environment
node
Created
2026-08-17T01:56:05Z

Commonly assumed

beforeEach and afterEach hooks run for every test block defined in the file, including concurrent tests.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts