-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Ported from main repoOld feature ideas ported from react-cosmos repositoryOld feature ideas ported from react-cosmos repository
Description
What's up?
In a CI environment I might want to run other tools against all (or some) of my fixtures. This might be something like visual regression tests or maybe some scripts written with Puppeteer to do smoke testing.
In those scenarios, I probably wouldn't care very much about the Cosmos UI itself, I'd just want to have statically built pages that I could use in other tools.
pages=$(cosmos-export --pages) # or some other flag, idk
# ./path/to/built/fixture.html
# ./path/to/other/built/fixture.html
for page in "${pages}"; do
./scripts/run-smoke-tests-on-page "${page}"
doneMkay, tell me more...
This could potentially be extended by other tools out of the box:
cosmos-export --pages | cosmos-browser-visual-regressions
cosmos-export --pages | cosmos-etcReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Ported from main repoOld feature ideas ported from react-cosmos repositoryOld feature ideas ported from react-cosmos repository