patch failing react tests

This commit is contained in:
Sorrel Bri 2020-05-14 21:04:29 -07:00
commit e41d889177
4 changed files with 19337 additions and 10041 deletions

16597
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,11 +5,6 @@
"test": "lerna run test", "test": "lerna run test",
"bootstrap": "lerna bootstrap --hoist" "bootstrap": "lerna bootstrap --hoist"
}, },
"dependencies": {
"nodemon": "^2.0.3",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"devDependencies": { "devDependencies": {
"@babel/preset-flow": "^7.8.3", "@babel/preset-flow": "^7.8.3",
"@testing-library/jest-dom": "^4.2.4", "@testing-library/jest-dom": "^4.2.4",

View file

@ -36,6 +36,8 @@ function App() {
dispatch({type:'SOCKET', message: 'LAUNCH', body:{nsp:'', dispatch}}); dispatch({type:'SOCKET', message: 'LAUNCH', body:{nsp:'', dispatch}});
} }
socketConnect(); socketConnect();
return () => dispatch({type: 'SOCKET', message: 'DISCONNECT', body: {}});
}, [ state.connect ]) }, [ state.connect ])
return ( return (

View file

@ -2,7 +2,7 @@ import React from 'react';
import './ActionError.scss'; import './ActionError.scss';
const ActionError = (props) => { const ActionError = (props) => {
const errorMessage = props.error; const errorMessage = props.error || '';
return ( return (
<span <span
className="error error--action" className="error error--action"