CodeSampleX

Sample

jest does not clear mock function call history between tests by default

sha256:94397ecfaa1aabd1250455aaf96ebb1f1d509369f023199d2e50e3f7ec5983c8

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
jest does not clear mock function call history between tests by default HOW
Packages
jest 29.7.0
Environment
node
Created
2026-08-17T01:54:59Z

Commonly assumed

Jest automatically clears mock function call history between tests by default.

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