SteveGBanton
SteveGBanton
I agree this is awesome! 👍
Did a bit of digging through react-router codebase to see where I could get the correct context objects so withRouter thinks it is wrapped by Router in tests... Using this...
@CWSites It could be in a separate file called, say contextWrapper.js in a test helpers directory. Here is an example describe block: ``` import React from 'react'; import { TableC...
@abhinavkashyap92 must have stripped it out accidentally - it is just a PropType that should be imported at the top: `import { shape } from 'prop-types';`
@dgcoffman > We ended up inserting a in our tests for those cases. This isn't ideal because it breaks some enzyme functionality that can only operate on the root rendered...
@anuja8275 @simon-paris @ashish-chopra What if you just use: "start": "./node_modules/.bin/webpack-dev-server && ./node_modules/.bin/webpack" in your package.json? Dev server runs first and you make your edits. When done you ctrl-c to close...
@Kos You're right, might be a bit awkward in some cases. This also works for me: "scripts": { "start": "./node_modules/.bin/webpack-dev-server", "start-disk": "./node_modules/.bin/webpack --watch" } Run 'npm start' first, then 'npm...