MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / writeBumpFileAt

Function writeBumpFileAt

packages/bumpy/test/core/bump-file-channels.test.ts:13–17  ·  view source on GitHub ↗
(dir: string, relPath: string, pkgName = 'pkg-a', bump = 'minor')

Source from the content-addressed store, hash-verified

11import { createTempGitRepo, cleanupTempDir, gitInDir } from '../helpers.ts';
12
13async 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
19describe('readBumpFiles with channels', () => {
20 test('reads root files as pending and channel files with their channel set', async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…