UNPKG

1.48 kBMarkdownView Raw
1## redux-pager-test
2
3**Test framework for redux-pager and related components. Enables redux-pager to not carry heavyweight dependencies.**
4
5[![Build Status](https://travis-ci.org/noderaider/redux-pager-test.svg?branch=master)](https://travis-ci.org/noderaider/redux-pager-test)
6[![codecov](https://codecov.io/gh/noderaider/redux-pager-test/branch/master/graph/badge.svg)](https://codecov.io/gh/noderaider/redux-pager-test)
7
8[![NPM](https://nodei.co/npm/redux-pager.png?stars=true&downloads=true)](https://nodei.co/npm/redux-pager/)
9
10## Philosophy
11
12Given the number of issues that occur when React and other heavy dependencies get bundled with a library component, **[redux-pager](https://github.com/noderaider/redux-pager)** does not include any of these dependencies. Instead, the consumer provides there version of React, connect, ReactVirtualized, etc. to redux-pager and redux-pager returns its components. This limits the ability to test redux-pager from within its own package. To accomodate, this library acts as the consuming app and tests redux-pager 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/redux-pager`
17`cd redux-pager`
18`npm i`
19`cd ..`
20
21`git clone https://github.com/noderaider/redux-pager-test`
22`cd redux-pager-test`
23`npm i`
24`npm link ../redux-pager`
25`npm test`