Jest ES module mock hoisting produces inconsistent test isolation
Diagnose whether Jest mock hoisting behaves consistently for ES modules when tests import mocked bindings using namespace syntax. Jest hoists jest.mock() calls above imports to allow module mocking, but ES module interop changes evaluation order. It is uncertain whether behavior is consistent across supported Jest versions, and whether top-level mock state p