-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove support for running the test file directly with node #97
Comments
With #83, removing does not have to be a real "either-or decision". It would be up to the user: // test.js
import test from 'ava';
test(t => {
t.pass();
t.end();
});
test.runAndExit(); // or a similar one-liner |
@schnittstabil The programmatic API is meant for running the tests, not be used in the test file itself. |
Would be good to reverse this decision… the ability to run tests without the |
@sindresorhus ty. |
It's nice in theory to be able to
node test.js
, but the reality is that it complicates the code a lot and by using it that way you miss out on the best features of AVA. It also create diverging code paths that just becomes harder to maintain.This would also fix #52.
@vdemedes I guess we can remove https://github.com/sindresorhus/ava/blob/c96622d6d8785719d16aa83d129cb5ffccbf9add/index.js#L75-L86 now. Anything else that can be removed/simplified because of this?
The text was updated successfully, but these errors were encountered: