-
Notifications
You must be signed in to change notification settings - Fork 31
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
Tests for entities #83
Comments
@dalssoft This test is for entities generated by the CLI? When you generate a new entity, It does not have logic yet. |
This issue is pre-spec/aloe but the idea remains valid. In order to implement this issue, first it is necessary to add a spec to entities on aloe. Once we have this feature there we could have a generated spec files to each entity or at least for the first entity (User) as an example |
Yes, I agree! We can have at least one |
I can work on this issue. |
@RafaelStutz are you still working on this? |
FYI, CLI can now run specs without use case metadata: #169 With that, it is just a matter of creating templates for the entities. |
The only test currently being generated (from
new
orupdate
command) is use case tests.Since entities also can (and should) have logic, they should have tests for entities as well.
ex:
\src\domain\entities\user.js
\src\domain\entities\user.test.js
The text was updated successfully, but these errors were encountered: