File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,16 @@ describe('init', () => {
2525
2626 describe ( 'help' , ( ) => {
2727 it ( 'shows help information' , async ( ) => {
28- const { stdout} = await runCommand ( [ 'init' , '--help' ] )
29- expect ( stdout ) . to . contain ( 'Initialize Claude Code hooks' )
30- expect ( stdout ) . to . contain ( '--force' )
28+ try {
29+ const { stdout} = await runCommand ( [ 'init' , '--help' ] )
30+ expect ( stdout ) . to . contain ( 'Initialize Claude Code hooks' )
31+ expect ( stdout ) . to . contain ( '--force' )
32+ } catch ( error ) {
33+ // Fallback to testing with execSync for compiled version
34+ const output = execSync ( `node ${ binPath } init --help` , { encoding : 'utf8' } )
35+ expect ( output ) . to . contain ( 'Initialize Claude Code hooks' )
36+ expect ( output ) . to . contain ( '--force' )
37+ }
3138 } )
3239 } )
3340
You can’t perform that action at this time.
0 commit comments