Skip to content

feat(validate-story): add scripts/validate-story.js (bd-ge-hch.3.4.5)#109

Closed
SorraTheOrc wants to merge 7 commits intomainfrom
feature/ge-hch.3.4-validate
Closed

feat(validate-story): add scripts/validate-story.js (bd-ge-hch.3.4.5)#109
SorraTheOrc wants to merge 7 commits intomainfrom
feature/ge-hch.3.4-validate

Conversation

@SorraTheOrc
Copy link
Member

Summary

  • add validate-story CLI to compile and auto-walk Ink stories with seeded choice selection
  • add unit tests for parse failure, success, and deterministic runs plus fixtures
  • expose jest-only test script to allow unit test runs without demo flow

Files Changed

  • scripts/validate-story.js
  • tests/validate-story/validate-story.test.js
  • tests/fixtures/valid.ink
  • tests/fixtures/invalid.ink
  • package.json
  • package-lock.json
  • jest.config.js

Testing

  • npm run test:unit
  • node scripts/validate-story.js --story tests/fixtures/valid.ink --seed 123 --max-steps 100 --output stdout

BD Links

  • ge-hch.3.4
  • ge-hch.3.4.5

Notes

  • CI workflow updates, if any, remain to Ship/CI

@SorraTheOrc
Copy link
Member Author

Closing: functionality implemented elsewhere and PR is conflicting. See merged PRs #110/#112/#115 for validate-story implementation, tests, and CI. Keeping branch for history; delete later if desired.

@SorraTheOrc SorraTheOrc deleted the feature/ge-hch.3.4-validate branch January 12, 2026 07:21
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