Tests for entities
The only test currently being generated (from new or update 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
@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 user.spec file in the herbs-cli template.
I can work on this issue.
@RafaelStutz are you still working on this?
FYI, CLI can now run specs without use case metadata: https://github.com/herbsjs/herbs-cli/issues/169
With that, it is just a matter of creating templates for the entities.