Skip to content

extra files are passed to AVA when following after another fly task #13

@frantic1048

Description

@frantic1048

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions