Skip to content

Commit fdca2ed

Browse files
committed
Cause error in test
1 parent f10831b commit fdca2ed

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/internal-events/fixtures/ava.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ export default {
1212
async observeRun(run) {
1313
for await (const event of run.events) {
1414
internalEvents.push(event);
15-
16-
if (event.type === 'end') {
17-
await fs.writeFile('internal-events.json', JSON.stringify(internalEvents));
18-
}
1915
}
16+
17+
await fs.writeFile('internal-events.json', JSON.stringify(internalEvents));
2018
},
2119
};

0 commit comments

Comments
 (0)