An open API service indexing awesome lists of open source software.

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

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
```