used `require.resolve()` with proper updated tests