You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Why you can't use AVA for this
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.
And maybe how you think AVA could handle this
Execute a resolve on the passed pattern if it doesn't match any of the other expected shapes, or begins with a tilde.
→ node
Welcome to Node.js v18.15.0.
Type ".help" for more information.
> const { resolve } = require('path')
undefined
> resolve('~')
'/Users/user/code/test/~'
The text was updated successfully, but these errors were encountered:
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.
Please provide details about:
pnpm exec ava ~/code/tests
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.The text was updated successfully, but these errors were encountered: