kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 193 forks source link

No Route for / Prevents Testing #668

Open merlinstardust opened 8 years ago

merlinstardust commented 8 years ago

I'm on Meteor 1.3.4.4 and trying to test with dispatch:mocha-phantomjs and dispatch:mocha-browser. In both cases, I get the same error There is no route for the path: / and no tests get ran.

I've tried halting FlowRouter's execution with wait but that doesn't work either.

And here's a forum post of others with a similar issue. https://forums.meteor.com/t/no-route-for-path-error-running-unit-tests/21560

Thoughts?

Full Error Trace

There is no route for the path: /
meteorInstall.node_modules.meteor.dispatch:mocha-phantomjs.browser-shim.js.console.error @ browser-shim.js:125
meteorInstall.node_modules.meteor.kadira:flow-router.client.router.js.Router._notfoundRoute @ router.js:347
(anonymous function) @ router.js:535
meteorInstall.node_modules.meteor.kadira:flow-router.node_modules.page.index.js.Route.middleware @ index.js:474
nextEnter @ index.js:306
meteorInstall.node_modules.meteor.kadira:flow-router.node_modules.page.index.js.page.dispatch @ index.js:312
meteorInstall.node_modules.meteor.kadira:flow-router.node_modules.page.index.js.page.replace @ index.js:275
meteorInstall.node_modules.meteor.kadira:flow-router.client.router.js.Router.initialize._.each.self._page.(anonymous function) @ router.js:382
meteorInstall.node_modules.meteor.kadira:flow-router.node_modules.page.index.js.page.start @ index.js:168
page @ index.js:102
meteorInstall.node_modules.meteor.kadira:flow-router.client.router.js.Router.initialize @ router.js:391
(anonymous function) @ _init.js:9
maybeReady @ startup_client.js:26
loadingCompleted @ startup_client.js:38
ghost commented 8 years ago

In a different thread, they have suggested some workaround... https://forums.meteor.com/t/spacejam-phantomjs-no-route-for-the-path-local-flowrouter/25233/5

Maybe I'm missing something, but suggested workaround doesn't solve the issue for me...

FWIW I've pushed some bugreport repository... https://github.com/freesoftwareneedsfreetools/bugreport001