Open shellscape opened 1 year ago
Related to this:
/Users/user/code/test
./
Do you have a stack trace for that error?
The pattern is resolved against to the current working directory and then made relative against the project directory:
https://github.com/avajs/ava/blob/63987725957114ea92dab430b7795ecc649ff107/lib/cli.js#L419
However it doesn't look like that expands the ~
.
I'd expect absolute paths to be resolved, however (as I recall) AVA cannot run test files outside of the project directory. Perhaps that could be communicated better.
Local paths really should work.
I'll be doing some additional testing today for a related moon issue and will grab a stack trace then.
Please provide details about:
This results in an error:
Expected pattern to be a non-empty string
The error is both incorrect and unfortunate. The
pattern
passed was not empty,ava
just didn't know what to do with it.Oodles of tertiary tooling will provide paths with a leading tilde. However correct or incorrect that is, it would be useful for local tooling to be able to leverage a tilde as a home directory path.
Execute a
resolve
on the passed pattern if it doesn't match any of the other expected shapes, or begins with a tilde.