Skip to content

Commit 5a72e93

Browse files
committed
Remove flaky test
1 parent 81ccf37 commit 5a72e93

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

claude-config-composer/tests/integration/cli.test.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)