Skip to content

git-story: add pre-commit hook end-to-end test - #3105

Draft
Dominic Nguyen (datduyng) wants to merge 4 commits into
mainfrom
domnguyen/git-story-hook-tests
Draft

Dominic Nguyen (datduyng) wants to merge 4 commits into
mainfrom
domnguyen/git-story-hook-tests

Conversation

@datduyng

Copy link
Copy Markdown
Contributor

Stacked on #3104.

Adds jest to git-story (same setup as aiclient) and one end-to-end test:

  1. git story init in a temp repo.
  2. A real git commit runs the hook through git's sh.
  3. Runs the hook with an argument and piped stdin, and checks both reach the handler.

The test uses an empty global git config and a git-story shim on PATH. Paths use path.delimiter and forward slashes, so the test runs on Windows, macOS, and Linux.

@datduyng
Dominic Nguyen (datduyng) changed the base branch from domnguyen/git-story-pre-commit-hook to main September 29, 2026 23:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant