Skip to content

Commit 32b3a19

Browse files
committed
Add file system sync delays for CI reliability
- Add 100ms delay after execSync in tests to allow file system to sync - This addresses timing issues where files are created but not immediately visible in CI - Fixes both nextjs-15 generation test and backup test failures
1 parent cc3a1f3 commit 32b3a19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ describe('CLI Integration Tests', () => {
7272

7373
expect(result).toContain('Configuration generated in');
7474

75+
// Add delay for CI file system sync
76+
await new Promise(resolve => setTimeout(resolve, 100));
77+
7578
// Check that .claude directory was created
7679
const claudeDir = path.join(testDir, '.claude');
7780
expect(fsSync.existsSync(claudeDir)).toBe(true);
@@ -138,6 +141,9 @@ describe('CLI Integration Tests', () => {
138141

139142
expect(result).toContain('Configuration generated in');
140143

144+
// Add delay for CI file system sync
145+
await new Promise(resolve => setTimeout(resolve, 100));
146+
141147
// Check that backup was created
142148
const files = await fs.readdir(testDir);
143149
const backupDir = files.find(f => f.startsWith('.claude.backup-'));

0 commit comments

Comments
 (0)