diff options
| author | Lee James <[email protected]> | 2025-08-06 09:06:37 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-06 13:06:37 +0000 |
| commit | b38f377c9a2672e88dd15119b38d908c0f00b54a (patch) | |
| tree | f8cd37038f592ab31f501c9f85df7fc659ae4f64 /packages/cli/src/ui/commands/setupGithubCommand.test.ts | |
| parent | aab850668c99e1c39a55036069d9f4b06ca458f4 (diff) | |
feat: Enable /setup-github to always run, and error appropriately (#5653)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/commands/setupGithubCommand.test.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/setupGithubCommand.test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/cli/src/ui/commands/setupGithubCommand.test.ts b/packages/cli/src/ui/commands/setupGithubCommand.test.ts index 891c84e7..ae6378c7 100644 --- a/packages/cli/src/ui/commands/setupGithubCommand.test.ts +++ b/packages/cli/src/ui/commands/setupGithubCommand.test.ts @@ -61,6 +61,8 @@ describe('setupGithubCommand', () => { vi.mocked(child_process.execSync).mockReturnValue(''); expect(() => { setupGithubCommand.action?.({} as CommandContext, ''); - }).toThrow('Unable to determine the Git root directory.'); + }).toThrow( + 'Unable to determine the GitHub repository. /setup-github must be run from a git repository.', + ); }); }); |
