Comments (1)
I managed to pass the test by modifying as below...
- SyntaxError: Identifier 'jest' has already been declared
Changed filename scripts/test.js to scripts/testRun.js and inside package.json
"scripts": {
...
"test": "node scripts/testRun.js --env=jsdom"
},
Jest was probably reading test.js as test script.
- Invariant Violation: Could not find "store" in either the context or props of "Connect(HiddenOnlyAuth(Component))". Either wrap the root component in a , or explicitly pass "store" as a prop to "Connect(HiddenOnlyAuth(Component))".
Imported some modules and modified inside ReactDOM.render
...
import { Provider } from 'react-redux'
import store from './store'
...
it('renders without crashing', () => {
const div = document.createElement('div')
ReactDOM.render((
<Provider store={store}>
<App />
</Provider>
),
div
)
})
Needed to declare 'store' for the wrapper file.
from react-auth-box.
Related Issues (20)
- Fetching Web3 init on main thread HOT 2
- Synchronous XMLHttpRequest on the main thread is deprecated HOT 2
- remove unused dispatch in callback
- Unbox error
- Can I make my own truffle box? HOT 1
- Truffle unbox error HOT 2
- Warning: Throw is deprecated in favour of "revert()", "require()", and "assert()" HOT 1
- How to receive web3 in Dashboard component?
- Login doesn't work HOT 3
- Why does it cost to login? HOT 1
- deploy to heroku HOT 1
- Contract Deployment
- Invalid JSON RPC response: "" HOT 1
- Error HOT 1
- web3.toUtf8 is not a function HOT 1
- Deploy to ropsten
- Update contract constructors
- Injected web3 is not properly detected HOT 1
- Run error HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-auth-box.