also looking at this
feat(setup): make the preset you pick the preset you get
#1412
10 files
+507
-61
| @@ -43,13 +43,13 @@ describe('CLI Setup - Non-Interactive Mode', () => { | ||
| 43 | 43 | }) |
| 44 | 44 | |
| 45 | 45 | describe('Workflow Generation Functions', () => { |
| 46 | it('should generate update workflow with correct schedule for every 2 hours', async () => { | |
| 46 | it('should generate the update schedule the preset asks for', async () => { | |
| 47 | 47 | const { generateUnifiedWorkflow } = await import('../src/setup') |
| 48 | 48 | |
| 49 | 49 | const workflow = generateUnifiedWorkflow(false) |
| 50 | 50 | |
| 51 | 51 | expect(workflow).toContain('name: Buddy') |
| 52 | expect(workflow).toContain('cron: \'0 */2 * * *\'') | |
| 52 | expect(workflow).toContain('cron: \'0 9 * * 1,3,5\'') | |
| 53 | 53 | expect(workflow).toContain('default: true') // dry_run default |
| 54 | 54 | expect(workflow).toContain('dependency-update:') // job name |
| 55 | 55 | expect(workflow).toContain('fetch-depth: 0') |