also looking at this
feat(setup): make the preset you pick the preset you get
#1412
10 files
+507
-61
| @@ -9,16 +9,16 @@ describe('CLI Setup - Extended Tests', () => { | ||
| 9 | 9 | const workflowWithCustomToken = generateUnifiedWorkflow(true) |
| 10 | 10 | expect(workflowWithCustomToken).toContain('name: Buddy') |
| 11 | 11 | expect(workflowWithCustomToken).toContain('pull_request:') // Rebase checkbox via PR edit event |
| 12 | expect(workflowWithCustomToken).toContain('cron: \'0 */2 * * *\'') // Update job | |
| 13 | expect(workflowWithCustomToken).toContain('cron: \'15 */2 * * *\'') // Dashboard job | |
| 12 | // Standard puts updates and the dashboard on one expression, so one | |
| 13 | // cron entry starts both jobs. | |
| 14 | expect(workflowWithCustomToken).toContain('cron: \'0 9 * * 1,3,5\'') | |
| 14 | 15 | expect(workflowWithCustomToken).toContain('BUDDY_TOKEN') |
| 15 | 16 | |
| 16 | 17 | // Test with default token |
| 17 | 18 | const workflowWithDefaultToken = generateUnifiedWorkflow(false) |
| 18 | 19 | expect(workflowWithDefaultToken).toContain('name: Buddy') |
| 19 | 20 | expect(workflowWithDefaultToken).toContain('pull_request:') // Rebase checkbox via PR edit event |
| 20 | expect(workflowWithDefaultToken).toContain('cron: \'0 */2 * * *\'') // Update job | |
| 21 | expect(workflowWithDefaultToken).toContain('cron: \'15 */2 * * *\'') // Dashboard job | |
| 21 | expect(workflowWithDefaultToken).toContain('cron: \'0 9 * * 1,3,5\'') | |
| 22 | 22 | // eslint-disable-next-line no-template-curly-in-string |
| 23 | 23 | expect(workflowWithDefaultToken).toContain('$') |
| 24 | 24 | // Should not use BUDDY_TOKEN in the actual token environment variable |