After the SB build step completes, open a hidden iframe that serves the built storybook, alongside an "extract script" that extracts the SB data we need to run a build, and post it back up to the addon.
We could then send those results with the publishBuild mutation and bypass extract on the server.
📦 Published PR as canary version: 0.0.125--canary.156.a4e1724.0
:sparkles: Test out this PR locally via:
```bash
npm install @chromaui/addon-visual-tests@0.0.125--canary.156.a4e1724.0
# or
yarn add @chromaui/addon-visual-tests@0.0.125--canary.156.a4e1724.0
```
After the SB build step completes, open a hidden iframe that serves the built storybook, alongside an "extract script" that extracts the SB data we need to run a build, and post it back up to the addon.
We could then send those results with the
publishBuild
mutation and bypass extract on the server.Running against this SB (with batching disabled), the time between "Build Step complete..." and "Got local extract results" is around 650ms.
Running against the Chromatic monorepo, with:
📦 Published PR as canary version:
0.0.125--canary.156.a4e1724.0
:sparkles: Test out this PR locally via: ```bash npm install @chromaui/addon-visual-tests@0.0.125--canary.156.a4e1724.0 # or yarn add @chromaui/addon-visual-tests@0.0.125--canary.156.a4e1724.0 ```