Closed bikerp closed 5 years ago
create a new domain like here: https://github.com/adrai/node-cqrs-domain/blob/master/test/integration/integrationTest.js
or try to call domain.eventStore.store.clear()
@adrai Yes, the domain.eventStore.store.clear()
did the trick. Thanks
Hi, I'd like to test pre-conditions for various commands. Is there a possibility to clear the eventstore in tests? I tried to run
domain.init()
before each test but it seems that the events are not discarded. Thanks Pavel