Skip to content

Commit

Permalink
Cause error in test
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Oct 28, 2023
1 parent f10831b commit fdca2ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/internal-events/fixtures/ava.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ export default {
async observeRun(run) {
for await (const event of run.events) {
internalEvents.push(event);

if (event.type === 'end') {
await fs.writeFile('internal-events.json', JSON.stringify(internalEvents));
}
}

await fs.writeFile('internal-events.json', JSON.stringify(internalEvents));
},
};

0 comments on commit fdca2ed

Please sign in to comment.