Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yakovlev-alexey/storytests-cli-example
https://github.com/yakovlev-alexey/storytests-cli-example
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/yakovlev-alexey/storytests-cli-example
- Owner: yakovlev-alexey
- Created: 2021-06-21T07:23:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-14T17:45:14.000Z (about 3 years ago)
- Last Synced: 2023-03-08T11:00:33.828Z (over 1 year ago)
- Language: JavaScript
- Size: 329 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Storytests CLI Example
This repository contains example configuration for [storytests-cli](https://github.com/yandex/storytests-cli).
## Configuration
You can discover storytests configuration in [storytests.config.js](./storytests.config.js) with commentary over configuration options. On the high level `storytests-cli` is configured to generate screenshot tests using [`hermione`](https://github.com/gemini-testing/hermione), [`puppeteer`](https://github.com/puppeteer/puppeteer) and [`playwright`](https://playwright.dev) from `*.stories.tsx` files.
You can see `storytests-cli` in action by passing `-r` flag to force rewrite on existing test files. To run actual tests use `STORYBOOK_URL=http://localhost:6006/ yarn playwright` and `yarn hermione:gui` or `yarn hermione:test`.
## Usage in CI
I recommend including `yarn storytests` command before running tests in your CI process to make sure that all new code being pushed to your repository has proper baselines generated for every component. You can see an example of CI failing in PR.
This app was bootstrapped by Create React App and is not designed to provide any value or to even function.