cqrs-sample icon indicating copy to clipboard operation
cqrs-sample copied to clipboard

Do you have suggestion on how to effectively unit tests the application of this sample?

Open alberto-coolshop opened this issue 7 years ago • 1 comments

I'm really interested in testing setup (with mocha) for a new CQRS project. Using this kind of approach I don't get where to start...

Do you have suggestions?

Many thanks, Alberto

alberto-coolshop avatar Jan 04 '19 17:01 alberto-coolshop

You can test the domain like this: https://github.com/adrai/node-cqrs-domain/blob/master/test/integration/integrationTest.js cmd in -> event out (aggregateState etc...) and you can test denormalizer like this: https://github.com/adrai/node-cqrs-eventdenormalizer/blob/master/test/integration/integrationTest.js evt in -> notifications out

adrai avatar Jan 04 '19 19:01 adrai