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

Function withTempDir

packages/bumpy/test/utils/package-manager.test.ts:256–263  ·  view source on GitHub ↗
(fn: (dir: string) => Promise<void>)

Source from the content-addressed store, hash-verified

254
255describe('detectWorkspaces catalog loading', () => {
256 async function withTempDir(fn: (dir: string) => Promise<void>): Promise<void> {
257 const dir = await mkdtemp(resolve(tmpdir(), 'bumpy-pm-'));
258 try {
259 await fn(dir);
260 } finally {
261 await rm(dir, { recursive: true, force: true });
262 }
263 }
264
265 test('loads Yarn catalogs from .yarnrc.yml (issue #148)', async () => {
266 await withTempDir(async (dir) => {

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…