also looking at this
feat(setup): make the preset you pick the preset you get
#1412
10 files
+507
-61
| @@ -123,7 +123,8 @@ describe('CLI Non-Interactive Integration Tests', () => { | ||
| 123 | 123 | // Verify the unified workflow has the correct content |
| 124 | 124 | const unifiedContent = await fs.readFile('.github/workflows/buddy.yml', 'utf-8') |
| 125 | 125 | expect(unifiedContent).toContain('name: Buddy') |
| 126 | expect(unifiedContent).toContain('cron: \'0 */2 * * *\'') | |
| 126 | // The standard preset's own schedule, not a constant the generator invents. | |
| 127 | expect(unifiedContent).toContain('cron: \'0 9 * * 1,3,5\'') | |
| 127 | 128 | expect(unifiedContent).toContain('default: true') // dry_run default |
| 128 | 129 | }) |
| 129 | 130 | |
| @@ -186,7 +187,7 @@ describe('CLI Non-Interactive Integration Tests', () => { | ||
| 186 | 187 | // Test all the required sections from the specification |
| 187 | 188 | const requiredSections = [ |
| 188 | 189 | 'name: Buddy', |
| 189 | 'cron: \'0 */2 * * *\'', | |
| 190 | 'cron: \'0 9 * * 1,3,5\'', | |
| 190 | 191 | 'workflow_dispatch:', |
| 191 | 192 | 'strategy:', |
| 192 | 193 | 'dry_run:', |
| @@ -251,7 +252,7 @@ describe('CLI Non-Interactive Integration Tests', () => { | ||
| 251 | 252 | |
| 252 | 253 | const requiredSections = [ |
| 253 | 254 | 'name: Buddy', |
| 254 | 'cron: \'15 */2 * * *\'', | |
| 255 | 'cron: \'0 9 * * 1,3,5\'', | |
| 255 | 256 | 'workflow_dispatch:', |
| 256 | 257 | 'bunx @buddysh/buddy dashboard', |
| 257 | 258 | 'dashboard-update:', // job name |