Skip to content

Conversation

@afn
Copy link
Contributor

@afn afn commented Dec 5, 2025

Initial POC for adding Storybook for visual and interactive tests.

To run Storybook locally:

$ cd packages/superdoc
$ npm run storybook

To push a build to Chromatic (which should eventually be made part of the CI
pipeline):

$ cd packages/superdoc
$ export CHROMATIC_PROJECT_TOKEN=xxxxxxxxxx # Get this from https://www.chromatic.com/manage?appId=692ddebaa47e85112240ef36&view=configure
$ npx chromatic

@linear
Copy link

linear bot commented Dec 5, 2025

afn added 10 commits December 4, 2025 23:41
The test app depends on various properties set on `window`, so multiple
stories on the same page doesn't work.
In the test app (e2e-tests/templates/vue), import from `@superdoc` and
`@harbour-enterprises/super-editor` rather than `superdoc`. These
aliases are set up by vite and refer to the in-memory compiled source
rather than the static output in the `dist` directory.
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.

2 participants