chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
28 stars 1 forks source link

Expose `getDependentStoryFiles` API in JSON format #262

Open ghengeveld opened 3 months ago

ghengeveld commented 3 months ago

From AP-4154

What

Add tracing method to CLI Node API.

Why

So that the VTA can run a trace command and show the results in a web UI.

How

Update the CLI so we have a Node API that allows us to use getDependentStoryFiles in a somewhat API-friendly manner (no logging, sensible object return value that's JSON serializable).