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
[bug] regression: deno test
Cannot resolve module "<dir>/test"
#3919
Comments
Just tried with Does this happen on master? |
Weird. I'm using the 0.32.0 release on Linux. |
@brandonkal can you share terminal output? |
Sure but there is no output beyond what is in the title // broken.test.ts
import { test as it } from 'https://deno.land/std@v0.32.0/testing/mod.ts'
import { assertEquals } from 'https://deno.land/std@v0.32.0/testing/asserts.ts'
it('works', () => {
assertEquals(10, 10)
}) $ deno -A test
Cannot resolve module "file:///home/brandon/broken-deno-test/test" But this works: deno -A https://deno.land/std@v0.32.0/testing/runner.ts $(fd test) |
You need to specify the perm flags after the subcommand, since not every subcommand has them. The logic behind that should be clear. Thus |
Permission flag after subcommand is confusing. It is still broken though
|
Subcommand-specific flags go after the subcommand.
Run |
It should be one of them |
Found it: #2947 :) You can close this if the other problems are okay. |
"test" is never a valid module name because it is extensionless. Therefore, I have also seen the "Cannot resolve module" error with just |
@brandonkal Yeah, "smart" flag error messages are commonly suggested. Another one is where a perm error occurs and the relevant perm flag is detected in the script args. Could you open a new issue? |
@bartlomieju Can this be closed? |
I mentioned this on the Gitter earlier and do not see an open issue here to track this.
Deno is trying to find a file named "test" rather than using the test subcommand as specified.
The text was updated successfully, but these errors were encountered: