-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
I've reproduced this bug in this repo. From the README there:
The
testdirectory has abug.jsand aworkaround.js.If you run:
npm installand thennpm tyou'll get:~/Developer/ava-beforeEach-afterEach-bug (master) ⛄ $ npm run test -s ✔ workaround › first log ✔ workaround › second log ✔ bug › first log ✖ bug › second log t.true(console.log.calledOnce) | false 1 test failed 1. second log AssertionError: false === true Test.fn (test/bug.js:16:3)For some reason, it appears that perhaps the cleanup function is not run between the two test runs.
It's using the latest version of AVA. Specifically, I spotted this here. Let me know if you need more info!
Metadata
Metadata
Assignees
Labels
No labels