ava: Can't run ava on cli with a glob in v2
Hello, I just wanted to upgrade to v2 but I got an error when trying to run
**/*.spec.js => unit tests
**/*.spec.int.js => for integration tests running only in CI or on demand
in v1.4.1 it works!
Error:
✖ Internal error
Error: ENOENT: no such file or directory, lstat '/mnt/ssd/repositories/test/lca/packages/lca/**'
Error: ENOENT: no such file or directory, lstat '/mnt/ssd/repositories/test/lca/packages/lca/**'
at Object.realpathSync (fs.js:1470:7)
at /mnt/ssd/repositories/test/lca/node_modules/ava/lib/api.js:186:28
at Array.reduce (<anonymous>)
at Api.run (/mnt/ssd/repositories/test/lca/node_modules/ava/lib/api.js:184:34)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
at async Object.exports.run (/mnt/ssd/repositories/test/lca/node_modules/ava/lib/cli.js:274:21)
Environment
Node.js v12.4.0
linux 4.18.0-22-generic
ava: 2.1.0
npm: 6.9.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (10 by maintainers)
@sindresorhus so how can I run different test files based on a different pattern ? e.g