项目作者: ademuk

项目描述 :
Testing UI
高级语言: TypeScript
项目地址: git://github.com/ademuk/testbook.git
创建时间: 2020-05-10T22:29:57Z
项目社区:https://github.com/ademuk/testbook

开源协议:MIT License

下载


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 apps.

  1. npx testbook

Once you have created tests, use the following to run those tests on the cli (suitable for CI):

  1. npx testbook cli

Contributing

Clone and run the following in the Testbook directory:

  1. yarn link

To the start the dev api server, pick any CRA project directory and run:

  1. yarn link testbook
  2. npx testbook dev

To run the client dev server run the following from the Testbook directory:

  1. yarn start