mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 01:26:48 +03:00
chore(test): rename test-generator to test-tab (#649)
* chore(test): rename test-generator to test-tab * And those * Prettify
This commit is contained in:
parent
03217001df
commit
9fdd298dc3
|
@ -84,7 +84,7 @@
|
|||
"redux-devtools-log-monitor": "^2.1.0",
|
||||
"redux-devtools-serialize": "^0.2.0",
|
||||
"redux-devtools-slider-monitor": "^2.0.0-5",
|
||||
"redux-devtools-test-generator": "^0.6.2",
|
||||
"redux-devtools-inspector-monitor-test-tab": "^0.6.2",
|
||||
"redux-devtools-trace-monitor": "^0.1.3",
|
||||
"redux-persist": "^4.10.2",
|
||||
"socketcluster-client": "^14.3.1",
|
||||
|
|
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import InspectorMonitor from 'redux-devtools-inspector-monitor';
|
||||
import StackTraceTab from 'redux-devtools-trace-monitor';
|
||||
import TestTab from 'redux-devtools-test-generator';
|
||||
import TestTab from 'redux-devtools-inspector-monitor-test-tab';
|
||||
import { DATA_TYPE_KEY } from '../../../constants/dataTypes';
|
||||
import SubTabs from './SubTabs';
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
### Installation
|
||||
|
||||
```
|
||||
npm install --save-dev redux-devtools-test-generator
|
||||
yarn add --dev redux-devtools-inspector-monitor-test-tab
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
@ -18,8 +18,8 @@ With [`redux-devtools`](https://github.com/reduxjs/redux-devtools) and [`redux-d
|
|||
import React from 'react';
|
||||
import { createDevTools } from 'redux-devtools';
|
||||
import InspectorMonitor from 'redux-devtools-inspector-monitor';
|
||||
import TestGenerator from 'redux-devtools-test-generator';
|
||||
import mochaTemplate from 'redux-devtools-test-generator/lib/redux/mocha'; // If using default tests.
|
||||
import TestGenerator from 'redux-devtools-inspector-monitor-test-tab';
|
||||
import mochaTemplate from 'redux-devtools-inspector-monitor-test-tab/lib/redux/mocha'; // If using default tests.
|
||||
|
||||
const testComponent = (props) => (
|
||||
<TestGenerator
|
||||
|
@ -42,9 +42,9 @@ If `useCodemirror` specified, include `codemirror/lib/codemirror.css` style and
|
|||
### Props
|
||||
|
||||
| Name | Description |
|
||||
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `assertion` | String template or function with an object argument containing `action`, `prevState`, `curState` keys, which returns a string representing the assertion (see the [function](https://github.com/zalmoxisus/redux-devtools-test-generator/blob/master/src/redux/mocha/index.js#L1-L3) or [template](https://github.com/zalmoxisus/redux-devtools-test-generator/blob/master/src/redux/mocha/template.js#L1)). |
|
||||
| [`wrap`] | Optional string template or function which gets `assertions` argument and returns a string (see the example [function](https://github.com/zalmoxisus/redux-devtools-test-generator/blob/master/src/redux/mocha/index.js#L5-L14) or [template](https://github.com/zalmoxisus/redux-devtools-test-generator/blob/master/src/redux/mocha/template.js#L3-L12)). |
|
||||
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `assertion` | String template or function with an object argument containing `action`, `prevState`, `curState` keys, which returns a string representing the assertion (see the [function](https://github.com/reduxjs/redux-devtools/blob/master/packages/redux-devtools-inspector-monitor-test-tab/src/redux/mocha/index.ts#L8-L9) or [template](https://github.com/reduxjs/redux-devtools/blob/master/packages/redux-devtools-inspector-monitor-test-tab/src/redux/mocha/template.ts#L5)). |
|
||||
| [`wrap`] | Optional string template or function which gets `assertions` argument and returns a string (see the example [function](https://github.com/reduxjs/redux-devtools/blob/master/packages/redux-devtools-inspector-monitor-test-tab/src/redux/mocha/index.ts#L11-L13) or [template](https://github.com/reduxjs/redux-devtools/blob/master/packages/redux-devtools-inspector-monitor-test-tab/src/redux/mocha/template.ts#L7-L8)). |
|
||||
| [`useCodemirror`] | Boolean. If specified will use codemirror styles. |
|
||||
| [`theme`] | String. Name of [the codemirror theme](https://codemirror.net/demo/theme.html). |
|
||||
|
|
@ -27,7 +27,7 @@ function getDebugSessionKey() {
|
|||
|
||||
const ROOT =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? '/redux-devtools-test-generator/'
|
||||
? '/redux-devtools-inspector-monitor-test-tab/'
|
||||
: '/';
|
||||
|
||||
const DevTools = getDevTools(window.location);
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "redux-devtools-test-generator",
|
||||
"name": "redux-devtools-inspector-monitor-test-tab",
|
||||
"version": "0.6.2",
|
||||
"description": "Generate tests for redux devtools.",
|
||||
"keywords": [
|
||||
|
@ -12,7 +12,7 @@
|
|||
"time travel",
|
||||
"live edit"
|
||||
],
|
||||
"homepage": "https://github.com/reduxjs/redux-devtools/tree/master/packages/redux-devtools-test-generator",
|
||||
"homepage": "https://github.com/reduxjs/redux-devtools/tree/master/packages/redux-devtools-inspector-monitor-test-tab",
|
||||
"bugs": {
|
||||
"url": "https://github.com/reduxjs/redux-devtools/issues"
|
||||
},
|
||||
|
@ -79,7 +79,8 @@
|
|||
"redux-devtools": "^3.7.0",
|
||||
"redux-devtools-dock-monitor": "^1.2.0",
|
||||
"redux-devtools-inspector-monitor": "^0.14.0",
|
||||
"redux-logger": "^3.0.6"
|
||||
"redux-logger": "^3.0.6",
|
||||
"seamless-immutable": "^7.1.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "^16.3.18",
|
|
@ -60,7 +60,7 @@ If `tabs` is an array, only provided tabs are rendered.
|
|||
|
||||
`component` is provided with `action` and other props, see [`ActionPreview.jsx`](src/ActionPreview.jsx#L42) for reference.
|
||||
|
||||
Usage example: [`redux-devtools-test-generator`](https://github.com/zalmoxisus/redux-devtools-test-generator#containersdevtoolsjs).
|
||||
Usage example: [`redux-devtools-inspector-monitor-test-tab`](https://github.com/reduxjs/redux-devtools/tree/master/packages/redux-devtools-inspector-monitor-test-tab#containersdevtoolsjs).
|
||||
|
||||
### License
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user