Use require.resolve
Upgrade expect.js