zalmoxisus / remote-redux-devtools

Redux DevTools remotely.
http://zalmoxisus.github.io/monitoring/
MIT License
1.8k stars 138 forks source link

Can't get working with Mocha #91

Open RyanAtViceSoftware opened 7 years ago

RyanAtViceSoftware commented 7 years ago

Hi,

I'm trying to get this working with mocha. I'm wiring it up as shown below.

  const store = createStore(
    rootReducer,
    initialState,
    composeWithDevTools(
      applyMiddleware(...middlewares)
    )
  );

  console.log('===> Remote Dev Tools configured');

I'm running my tests using this command

    "test:cover": "NODE_ENV=development DEV_MODE=test node_modules/mocha/bin/mocha --compilers js:babel-register --require babel-polyfill --recursive ./test/**/*.test.js --debug-brk",

I'm verifying that process.env.NODE_ENV === development as shown below but I'm not seeing any redux actions in the redux dev tools which were launched from chrome using the Open remote devetools menu option.

image

zalmoxisus commented 7 years ago

Try to delay the test execution for several seconds. When the tests are finished the devtools session is destroyed.