Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including react-ai-test with all npm packages installed. Try it out:

var reactAiTest = require("react-ai-test")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

react-ai-test v0.16.3

Test framework for react-ai and related components. Enables react-ai to not carry heavyweight dependencies.

react-ai-test

Test framework for react-ai and related components. Enables react-ai to not carry heavyweight dependencies.

Build Status codecov

NPM

Philosophy

Given the number of issues that occur when React and other heavy dependencies get bundled with a library component, 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.

How to use

git clone https://github.com/noderaider/react-ai cd react-ai npm i cd ..

git clone https://github.com/noderaider/react-ai-test cd react-ai-test npm i npm link ../react-ai npm test

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free