Closed b0o closed 8 months ago
My tsconfig has the following paths config:
"paths": { "#/*": ["./src/*"] }
My foo.test.ts file uses imports like:
foo.test.ts
import { foo } from '#/foo'
Running my test with vitest run works just fine, but running with vitest typecheck throws loads of errors because it seems it isn't able to resolve the '#/foo' import. Switching to relative paths fixes the issue.
vitest run
vitest typecheck
'#/foo'
Is this the intended behavior?
I'm not sure what I did, but I reverted back to '#/foo' and it works again... :woman_facepalming:
My tsconfig has the following paths config:
My
foo.test.ts
file uses imports like:Running my test with
vitest run
works just fine, but running withvitest typecheck
throws loads of errors because it seems it isn't able to resolve the'#/foo'
import. Switching to relative paths fixes the issue.Is this the intended behavior?