also looking at this
feat(setup): make the preset you pick the preset you get
#1412
10 files
+507
-61
| @@ -7,7 +7,7 @@ describe('CLI Setup - Enhanced Functions', () => { | ||
| 7 | 7 | const workflow = generateUnifiedWorkflow(true) |
| 8 | 8 | |
| 9 | 9 | expect(workflow).toContain('name: Buddy') |
| 10 | expect(workflow).toContain('cron: \'15 */2 * * *\'') // Updated dashboard schedule | |
| 10 | expect(workflow).toContain('cron: \'0 9 * * 1,3,5\'') // Standard preset schedule | |
| 11 | 11 | // GITHUB_TOKEN is the built-in token; BUDDY_TOKEN is passed separately for workflow file permissions |
| 12 | 12 | // eslint-disable-next-line no-template-curly-in-string |
| 13 | 13 | expect(workflow).toContain('GITHUB_TOKEN: $') |
| @@ -38,8 +38,8 @@ describe('CLI Setup - Enhanced Functions', () => { | ||
| 38 | 38 | expect(workflow).toContain('dependency-update:') |
| 39 | 39 | expect(workflow).toContain('dashboard-update:') |
| 40 | 40 | expect(workflow).toContain('pull_request:') // Rebase checkbox triggers instantly via PR edit event |
| 41 | expect(workflow).toContain('cron: \'0 */2 * * *\'') // Update every 2 hours | |
| 42 | expect(workflow).toContain('cron: \'15 */2 * * *\'') // Dashboard 15 mins after updates | |
| 41 | expect(workflow).toContain('cron: \'0 9 * * 1,3,5\'') // Updates and dashboard | |
| 42 | expect(workflow).toContain('cron: \'0 4 * * *\'') // Housekeeping, never preset-driven | |
| 43 | 43 | expect(workflow).toContain('bunx @buddysh/buddy update-check') |
| 44 | 44 | expect(workflow).toContain('bunx @buddysh/buddy update') |
| 45 | 45 | expect(workflow).toContain('bunx @buddysh/buddy dashboard') |
| @@ -70,7 +70,7 @@ describe('CLI Setup - Enhanced Functions', () => { | ||
| 70 | 70 | const workflow = generateUnifiedWorkflow(false) |
| 71 | 71 | |
| 72 | 72 | expect(workflow).toContain('name: Buddy') |
| 73 | expect(workflow).toContain('cron: \'0 */2 * * *\'') | |
| 73 | expect(workflow).toContain('cron: \'0 9 * * 1,3,5\'') | |
| 74 | 74 | expect(workflow).toContain('default: false') // dry_run default |
| 75 | 75 | expect(workflow).toContain('dependency-update:') // job name |
| 76 | 76 | expect(workflow).toContain('determine-jobs:') // job coordination |