Knowledge · testing

Jest ESM vendor shim

A pattern for stably importing an ESM-only npm package in a Jest CJS environment via a vendor TS file and moduleNameMapper

Date
2026-07-05
Reading time
3 min
Confidence
Inferred

This page is a machine translation of the Korean original. Read the original

Document graph