test(architecture): add rules to prevent Presenters and Views
Ensure that the Application layer does not contain Presenters or Views.
This commit is contained in:
parent
6712e06042
commit
0cd539c180
1 changed files with 10 additions and 0 deletions
|
|
@ -24,4 +24,14 @@ describe('Application Architecture Rules', function (): void {
|
|||
->expect('Application\Usecase')
|
||||
->toBeReadonly()
|
||||
->toBeFinal();
|
||||
|
||||
arch('Application layer must not contain Presenters')
|
||||
->expect('Application')
|
||||
->classes()
|
||||
->not->toHaveSuffix('Presenter');
|
||||
|
||||
arch('Application layer must not contain Views')
|
||||
->expect('Application')
|
||||
->classes()
|
||||
->not->toHaveSuffix('View');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue