createResolver allows you to resolve paths relative to the integration folder easily.
Why should you use it?
We think it provides a better DX. Instead of having to do some back and forth between
your code and your package.jsonexports fields, you can just use some intuitive
relative paths!
Usage
Always pass import.meta.url to createResolver! That’s the equivalent of the
old __filename. This way, resolve will always create a valid path relatively,
no matter its location in node_modules, package managers madness etc
We recommend calling it in setup to easily access resolve in any hook.