We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
function testMacro(t, cb) { cb(t); } test.only('test async', testMacro, async t => { t.is(1, 1); await Promise.resolve(); t.is(3, 2); // will be ignored });
Tell us which operating system you are using, as well as which versions of Node.js, npm, and AVA. Run the following to get it quickly:
Node.js v13.2.0 darwin 18.6.0 ava 2.4.0 npm 6.13.1
The text was updated successfully, but these errors were encountered:
Try this one
async function testMacro(t) { await cb(t); } test.only('test async', testMacro, async t => { t.is(1, 1); await Promise.resolve(); t.is(3, 2); // will be ignored });
But why you don want to normally ?
async function testMacro(t) { t.is(1, 1); await Promise.resolve(); t.is(3, 2); } test.only('test async', testMacro);
Sorry, something went wrong.
it works. Thanks.
No branches or pull requests
Test Source
Environment
Tell us which operating system you are using, as well as which versions of Node.js, npm, and AVA. Run the following to get it quickly:
Node.js v13.2.0
darwin 18.6.0
ava 2.4.0
npm 6.13.1
The text was updated successfully, but these errors were encountered: