https://github.com/ademuk/testbook
Testing UI
https://github.com/ademuk/testbook
component-testing react testing testing-tool
Last synced: 16 days ago
JSON representation
Testing UI
- Host: GitHub
- URL: https://github.com/ademuk/testbook
- Owner: ademuk
- License: mit
- Created: 2020-05-10T22:29:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T20:28:24.000Z (about 3 years ago)
- Last Synced: 2024-04-26T17:22:26.615Z (almost 2 years ago)
- Topics: component-testing, react, testing, testing-tool
- Language: TypeScript
- Homepage:
- Size: 4.83 MB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Testbook
Testbook is a tool for creating React component tests.
https://twitter.com/ademuk/status/1336427421105614853?s=20
## Running
Testbook runs in your browser, to start it from your project use the following command:
NOTE: Currently supports [Create React App](https://github.com/facebook/create-react-app) apps.
```
npx testbook
```
Once you have created tests, use the following to run those tests on the cli (suitable for CI):
```
npx testbook cli
```
## Contributing
Clone and run the following in the Testbook directory:
```
yarn link
```
To the start the dev api server, pick any CRA project directory and run:
```
yarn link testbook
npx testbook dev
```
To run the client dev server run the following from the Testbook directory:
```
yarn start
```