Is it possible to make it so that when a file does import "modA", "modB" gets imported in its place?
For instance by using package.json?
Problem:
I'm working on a project that I'm not the owner of. I'm trying to convince the owner to switch to Bun, but haven't managed yet.
I made some modifications to make the project compatible with Bun, but one big piece that is still missing is the testing suite: the project is using node:test. I patched the tests so that they now work with bun too, if I replace the import from node:test to bun:test. However I cannot commit this change as it would break the tests for the project's owner.
What can I do to make the tests work both for the owner (on node) and for me on Bun?