(dir: string, relPath: string, pkgName = 'pkg-a', bump = 'minor')
| 11 | import { createTempGitRepo, cleanupTempDir, gitInDir } from '../helpers.ts'; |
| 12 | |
| 13 | async function writeBumpFileAt(dir: string, relPath: string, pkgName = 'pkg-a', bump = 'minor'): Promise<void> { |
| 14 | const filePath = resolve(dir, relPath); |
| 15 | await mkdir(resolve(filePath, '..'), { recursive: true }); |
| 16 | await writeFile(filePath, `---\n"${pkgName}": ${bump}\n---\n\nSome change\n`); |
| 17 | } |
| 18 | |
| 19 | describe('readBumpFiles with channels', () => { |
| 20 | test('reads root files as pending and channel files with their channel set', async () => { |
no outgoing calls
no test coverage detected
searching dependent graphs…