Move mock.module() calls from top-level to beforeEach and restore in afterEach to prevent readFileSync mock from leaking into other test files. Use dynamic import with cache-busting query to get fresh modules.