Open wildmolasses opened 6 years ago
I managed to pass the test by modifying as below...
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.
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.
After unboxing, then compiling and migrating my contracts, Jest tests fail on
npm run test
node v7.1.0 truffle v3.4.11 solidiy v0.4.15