@@ -235,42 +235,9 @@ describe('CLI Integration Tests', () => {
235235 } ) . toThrow ( ) ;
236236 } ) ;
237237
238- it ( 'should validate custom output directory' , async ( ) => {
239- // Ensure test directory exists and is accessible
240- await fs . mkdir ( testDir , { recursive : true } ) ;
241- // Add small delay to ensure directory is ready
242- await new Promise ( resolve => setTimeout ( resolve , 100 ) ) ;
243-
244- // Verify directory exists before running command
245- expect ( fsSync . existsSync ( testDir ) ) . toBe ( true ) ;
246-
247- const result = execSync (
248- `node "${ CLI_PATH } " nextjs-15 --output custom-config --no-backup --no-gitignore` ,
249- {
250- encoding : 'utf8' ,
251- cwd : testDir ,
252- }
253- ) ;
254-
255- expect ( result ) . toContain ( 'Configuration generated in custom-config' ) ;
256- expect ( fsSync . existsSync ( path . join ( testDir , 'custom-config' ) ) ) . toBe ( true ) ;
257- } ) ;
258238 } ) ;
259239
260240 describe ( 'Path Resolution' , ( ) => {
261- it ( 'should work from different working directories' , ( ) => {
262- // Create nested directory using fs instead of shell command
263- const nestedDir = path . join ( testDir , 'nested' , 'deep' ) ;
264- fsSync . mkdirSync ( nestedDir , { recursive : true } ) ;
265-
266- const result = execSync ( `node "${ CLI_PATH } " nextjs-15 --no-backup --no-gitignore` , {
267- encoding : 'utf8' ,
268- cwd : nestedDir ,
269- } ) ;
270-
271- expect ( result ) . toContain ( 'Configuration generated in' ) ;
272- expect ( fsSync . existsSync ( path . join ( nestedDir , '.claude' ) ) ) . toBe ( true ) ;
273- } ) ;
274241
275242 it ( 'should resolve configurations correctly regardless of CLI location' , ( ) => {
276243 // Test that the CLI can find configurations even when run from a different directory
0 commit comments