-
Notifications
You must be signed in to change notification settings - Fork 0
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
extra files are passed to AVA when following after another fly task #13
Comments
It's a Fly bug that's been on my todo list. When you run tasks from inside other tasks, there's a rare chance that the source files will cross over. I think I know why, but haven't had time to do it yet. For now, either define your task order via the CLI/NPM command definition: {
"test": "fly build test"
} Or use |
Thanks for the explaination, I know how to workaround this. By the way, I found exports.test = function* test (fly) {
yield fly.serial(['foo'])
yield fly.source('./test/index.js').ava() // error
} |
Yeah, sorry. The best and most reliable way is to chain your commands from the NPM script. {
"test": "fly foo test"
} |
Is this the |
@pine Nope, this is a Fly bug. |
OK! Thanks. |
Let's say we have such a
flyfile.js
./src/index.js
is just a blank file../test/index.js
is a regular AVA test file:Fly will fail
test
task with error:test failed because No tests found in src/index.js, make sure to import "ava" at the top of your test file
. Even I just source('./test/index.js') to AVA.But
task_another
runs well.I'm not sure if this is an fly issue.
The text was updated successfully, but these errors were encountered: