Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alberto-coolshop opened this issue Jan 4, 2019 · 1 comment

Comments

@alberto-coolshop
Copy link

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

@adrai
Copy link
Contributor

adrai commented Jan 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants