Skip to content

single-staged-file

worktree

one baseline commit + a single staged README

Minimal "ready to commit" state. A single baseline commit on
`main` plus one staged file (`README.md`). No unstaged or
untracked files.

Useful for testing:
  - `coco commit` (any flavor — has a staged diff to summarize)
  - any flow that asserts "there is staged content to commit"
  - smoke tests that just need a valid commit-ready repo
  • main has 1 commit
  • exactly 1 staged file (README.md)
  • no unstaged or untracked files
stagedminimalcommit-ready
main
import { spinUpScenario } from '@gfargo/git-scenarios'

const repo = await spinUpScenario('single-staged-file')
* bdc267e (HEAD -> main) chore: initial commit

Back to Scenario Browser