-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deno test - Cannot resolve module #9284
Comments
|
I was going to say we should reconsider a non-file URL for I think the fake module specifier we use should be put through the import map, and the result of that should be passed to |
That sounds reasonable. |
If #9662 ends up landing we'll be removing the synthetic test module as a side effect. |
As a side note, I've found that I can work around this issue by being more specific with aliases: {
"imports": {
"/internal/": "../internal/",
"/types/": "../types/"
}
} (paths are I'm not sure why this works, but it does. |
I have an import map:
My program runs correctly with:
I have a simple test file:
When I run:
I get:
Things I've tried:
deno test --import-map ./import_map.json -A --unstable tests
Why is the behaviour of
deno test
different todeno run
?The text was updated successfully, but these errors were encountered: