MCPcopy Index your code
hub / github.com/angular/angular-cli / expectGitToBeClean

Function expectGitToBeClean

tests/e2e/utils/git.ts:8–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8export async function expectGitToBeClean(): Promise<void> {
9 const { stdout } = await silentGit('status', '--porcelain');
10 if (stdout != '') {
11 throw new Error('Git repo is not clean...\n' + stdout);
12 }
13}
14
15export async function gitCommit(message: string): Promise<void> {
16 await git('add', '-A');

Callers

nothing calls this directly

Calls 1

silentGitFunction · 0.90

Tested by

no test coverage detected