MCPcopy Create free account
hub / github.com/vercel/vercel / vcEnvPullOverwrite

Function vcEnvPullOverwrite

packages/cli/test/integration-1.test.ts:595–607  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

593 }
594
595 async function vcEnvPullOverwrite() {
596 const { exitCode, stdout, stderr } = await execCli(
597 binaryPath,
598 ['env', 'pull'],
599 {
600 cwd: target,
601 }
602 );
603
604 expect(exitCode, formatOutput({ stdout, stderr })).toBe(0);
605 expect(stderr).toMatch(/Overwriting existing .env.local file/gm);
606 expect(stderr).toMatch(/Updated .env.local file/gm);
607 }
608
609 async function vcEnvPullConfirm() {
610 fs.writeFileSync(path.join(target, '.env.local'), 'hahaha');

Callers 1

Calls 2

execCliFunction · 0.90
formatOutputFunction · 0.50

Tested by

no test coverage detected