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
Currently, if anything in the test's dependency tree is missing, AVA gives a message "no tests found in ":
Let's make this message more meaningful!
From a user's perspective, it's very frustrating because one has to manually go through all dependencies and often it's a typing error or wrong way the API is consumed which makes it even harder to spot what's missing. ESLint plugins like no-unresolved don't help either. It's very easy to mis-wire the own API and not to trigger ESLint.
When such error happens, there must be a real error message somewhere deep, probably it is just not "piped through" to the end-user though AVA's innards. Maybe it's esm or between the AVA and its dependencies?
Often people encounter this like in #1903 and Support here helps to pinpoint the missing dependency but we should do something at the higher level to make the messages more meaningful so that users could help themselves. And save everybody's time.
Test Source
Make a dependency not to be resolved one way or another.
novemberborn
changed the title
Feature request — Improve the messaging during error "no tests found in ..."
Surface errors in loading the test file, rather than misleadingly stating there are no tests
Nov 10, 2019
In the meantime, how do people find out what’s actually going wrong?
I upgraded a project’s ava version to 3.5.0 (including the major version change to version 3.0.0). That project is importing a module from a .ts file via ts-node/register. Now, I get "Couldn't find any files to test" even though I have tests.
What works for my particular case is installing @ava/babel and adding the following configuration to the ava key in my package.json:
Description
Currently, if anything in the test's dependency tree is missing, AVA gives a message "no tests found in ":
Let's make this message more meaningful!
From a user's perspective, it's very frustrating because one has to manually go through all dependencies and often it's a typing error or wrong way the API is consumed which makes it even harder to spot what's missing. ESLint plugins like no-unresolved don't help either. It's very easy to mis-wire the own API and not to trigger ESLint.
When such error happens, there must be a real error message somewhere deep, probably it is just not "piped through" to the end-user though AVA's innards. Maybe it's
esm
or between the AVA and its dependencies?Often people encounter this like in #1903 and Support here helps to pinpoint the missing dependency but we should do something at the higher level to make the messages more meaningful so that users could help themselves. And save everybody's time.
Test Source
Make a dependency not to be resolved one way or another.
test file:
just make it so that "package1" does not export "something", and you'll get this error "no tests found in ".
Config
I'm using
esm
and my sources are in ES modules, if it matters.From package.json:
Environment
MacOS and ava 2.4.0
The text was updated successfully, but these errors were encountered: