env.events().all() returns only the events published by the last contract invocation, so the test asserts on the events after every call.
Contract Testing
Test Events
Write tests that test contract events.
Tests can assert on events that are expected to be published.
The following example sets up a test environment, registers an increment contract, and checks the events published by each increment invocation.