How scalvert/bintastic works
bintastic is a Node.js CLI testing harness. A test author configures the harness, creates a temporary project for fixture files, runs the configured CLI as a subprocess, inspects its captured result, and tears the project down. The package also provides JSON and dedented-text template helpers, plus project conveniences such as Git initialization and changing into the project directory. The graph reflects the sampled implementation and README workflow; unsampled details of subprocess options and fixture storage are not expanded.
Main entry points: create-bintastic.ts Harness Lifecycle · index.ts Package Exports · project.ts Temporary Project · json.ts JSON Templates
Components 7
Public API
- Package Exports
src/index.ts
Test Harness
- Harness Lifecycle
src/create-bintastic.ts - Temporary Project
src/project.ts - CLI Subprocess
Fixture Authoring
- JSON Templates
src/json.ts - Text Templates
src/text.ts
Other components
- Test Author
Connections 9
- Test Author → Package Exports: uses API
README.md - Package Exports → Harness Lifecycle: exports
src/index.ts - Package Exports → JSON Templates: exports
src/index.ts - Package Exports → Text Templates: exports
src/index.ts - Harness Lifecycle → Temporary Project: creates and writes
src/create-bintastic.ts - Harness Lifecycle → Temporary Project: disposes
src/create-bintastic.ts - Harness Lifecycle → CLI Subprocess: spawns CLI
src/create-bintastic.ts - Temporary Project → Test Author: provides fixture workspace
README.md - CLI Subprocess → Harness Lifecycle: returns captured result
src/create-bintastic.ts