-
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
cli: Cannot read property 'stats' of undefined #198
Comments
Thanks for report. We'll look into it.
You don't need this. AVA does this for you. And btw, you should take advantage of async functions ;) import test from 'ava';
import { rollup } from 'rollup';
test('should load from memory', async t => {
const bundle = await rollup({
entry: '../src/index.js',
plugins: []
});
const result = bundle.generate({
format: 'cjs'
});
console.log(result.code);
}); |
@sindresorhus Oh cool about chdir. I'm just afraid a little new syntax :)) But will try. Still babel is out of the box :) |
I got this error too. I was able to recreate from scratch by running ava via cli on a directory containing one file with a valid test and another empty file. |
Properly handle empty results from test files - fixes #198
Hi got this error
Here's my code
When I remove console.log, error does not reject. It doesn't seem problem in rollup.
The text was updated successfully, but these errors were encountered: