Let's say we have such a flyfile.js
exports.foo = function* foo (fly) {
yield fly.source('./src/index.js').target('build/index.js')
}
exports.test = function* test (fly) {
yield fly.start('foo')
yield fly.source('./test/index.js').ava() // error
}
exports.test_another = function* test_another (fly) {
yield fly.source('./src/index.js').target('build/index.js')
yield fly.source('./test/index.js').ava() // works
}
./src/index.js is just a blank file.
./test/index.js is a regular AVA test file:
import test from 'ava'
test('foo', t => {
t.pass()
})
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.