@@ -8,11 +8,13 @@ import type {
88 default as TestSubject
99} from '#interfaces/command.metadata'
1010import type {
11+ Action ,
1112 Argument ,
1213 Command ,
1314 CommandInfo ,
1415 ExampleInfo ,
1516 Help ,
17+ HooksInfo ,
1618 Option ,
1719 VersionOption
1820} from '@flex-development/kronk'
@@ -27,6 +29,12 @@ describe('unit-d:interfaces/CommandMetadata', () => {
2729 expectTypeOf < TestSubject > ( ) . toExtend < Expect > ( )
2830 } )
2931
32+ it ( 'should match [action: Action<any>]' , ( ) => {
33+ expectTypeOf < TestSubject > ( )
34+ . toHaveProperty ( 'action' )
35+ . toEqualTypeOf < Action < any > > ( )
36+ } )
37+
3038 it ( 'should match [aliases: Set<string>]' , ( ) => {
3139 expectTypeOf < TestSubject > ( )
3240 . toHaveProperty ( 'aliases' )
@@ -63,6 +71,12 @@ describe('unit-d:interfaces/CommandMetadata', () => {
6371 . toEqualTypeOf < Nilable < Option > > ( )
6472 } )
6573
74+ it ( 'should match [hooks: HooksInfo]' , ( ) => {
75+ expectTypeOf < TestSubject > ( )
76+ . toHaveProperty ( 'hooks' )
77+ . toEqualTypeOf < HooksInfo > ( )
78+ } )
79+
6680 it ( 'should match [options: Map<string, Option>]' , ( ) => {
6781 expectTypeOf < TestSubject > ( )
6882 . toHaveProperty ( 'options' )
0 commit comments