Skip to content

v0.5.0

Choose a tag to compare

@gfargo gfargo released this 22 May 18:01

What's New

ESM Dual-Publish

Package now ships both CJS and ESM. Use import or require — both work.

4 New Scenarios (27 total)

  • shallow-clone — shallow repo with limited history depth
  • multiple-worktrees — primary + 3 linked worktrees
  • large-repo — 115 commits across 3 branches (pagination testing)
  • mid-revert-conflict — in-progress revert with REVERT_HEAD

Programmatic Registration

import { registerScenario, defineScenario } from '@gfargo/git-scenarios'
registerScenario(defineScenario({ name: 'my-custom', ... }))
// Now available via spinUpScenario('my-custom')

Jest Framework Adapter

import { describeWithScenario } from '@gfargo/git-scenarios/jest'
describeWithScenario('feature-pr-ready', (getRepo) => {
  it('works', async () => {
    const repo = getRepo()
    // test against the scenario
  })
})

See CHANGELOG.md for full details.