vitest
vitest copied to clipboard
fix: importActual path resolution for non-child paths (fix #1864)
This fixes two similar bugs with importActual
's path resolution:
- #1864, importing from sibling directories would try to import from sub directories instead.
- Importing from a sibling directory that starts with the root path would snip the root off the path (for example,
path = '/foo/bar-baz'
withroot = '/foo/bar'
results in an output of-baz
)
Fixes #1864.
Ok I have no idea why that one CI run failed. If anyone knows please let me know so I can fix it!
@antfu Could this be merged soon? This is completely blocking my ability to convert our application over to vitest.
@simon-abbott We might try this approach anyway. Do you think you can resolve conflicts?
Certainly!