UNPKG

1.42 kBMarkdownView Raw
1## react-ai-test
2
3**Test framework for react-ai and related components. Enables react-ai to not carry heavyweight dependencies.**
4
5[![Build Status](https://travis-ci.org/noderaider/react-ai-test.svg?branch=master)](https://travis-ci.org/noderaider/react-ai-test)
6[![codecov](https://codecov.io/gh/noderaider/react-ai-test/branch/master/graph/badge.svg)](https://codecov.io/gh/noderaider/react-ai-test)
7
8[![NPM](https://nodei.co/npm/react-ai.png?stars=true&downloads=true)](https://nodei.co/npm/react-ai/)
9
10## Philosophy
11
12Given the number of issues that occur when React and other heavy dependencies get bundled with a library component, **[react-ai](https://github.com/noderaider/react-ai)** does not include any of these dependencies. Instead, the consumer provides there version of React, connect, ReactVirtualized, etc. to react-ai and react-ai returns its components. This limits the ability to test react-ai from within its own package. To accomodate, this library acts as the consuming app and tests react-ai exactly as it would be used in a consumer environment. This means 0 chance of accidentally including 2 copies of React in the DOM or any library code for that matter.
13
14## How to use
15
16`git clone https://github.com/noderaider/react-ai`
17`cd react-ai`
18`npm i`
19`cd ..`
20
21`git clone https://github.com/noderaider/react-ai-test`
22`cd react-ai-test`
23`npm i`
24`npm link ../react-ai`
25`npm test`