No route for path error running unit tests

Hi there.

Running Meteor 1.3.2.1. I have an error running simple unit tests with no dependencies. Flow Router seems to get initialize someway and throws an error that there is no route for path ‘/’. This happens both with mocha+chrome (can see error in Chrome dev tools) or with mocha+phantomjs (can see error on command line).

I had this test working fine before… Think it broke after update to 1.3.1 or the addition of other packages.

This test runs fine in a clean, brand new project under Meteor 1.3.2.1. So I assume my current project has been corrupted. Though I have the same mocha/phantomjs package versions in .meteor/versions.

I have tried ‘meteor reset’.

Here’s my only test:

import {chai} from ‘meteor/practicalmeteor:chai’;

describe(‘demo’, function () {
beforeEach(function () {
});

afterEach(function () {
});

it('fails', function () {
    chai.assert.equal(1,2);
});

it('passes', function () {
    chai.assert.equal(1,1);
});

});

And here’s the CI run output:

meteor test --settings settings-ci.json --once --driver-package dispatch:mocha-phantomjs

[[[[[ Tests ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/
I20160417-12:10:11.576(-4)?
I20160417-12:10:11.578(-4)? --------------------------------
I20160417-12:10:11.578(-4)? ----- RUNNING SERVER TESTS -----
I20160417-12:10:11.579(-4)? --------------------------------
I20160417-12:10:11.579(-4)?
I20160417-12:10:11.579(-4)?
I20160417-12:10:11.579(-4)?
I20160417-12:10:11.579(-4)? 0 passing (1ms)
I20160417-12:10:11.580(-4)?
I20160417-12:10:11.580(-4)?
I20160417-12:10:11.580(-4)? --------------------------------
I20160417-12:10:11.580(-4)? ----- RUNNING CLIENT TESTS -----
I20160417-12:10:11.581(-4)? --------------------------------
I20160417-12:10:11.581(-4)?
I20160417-12:10:12.809(-4)? Passed: 0 Failed: 0 Total: 0
I20160417-12:10:12.809(-4)?
I20160417-12:10:12.810(-4)? There is no route for the path: /
I20160417-12:10:12.811(-4)?
I20160417-12:10:12.811(-4)?
I20160417-12:10:12.811(-4)? phantomjs://code/phantomjsScript.js:15 in onError
I20160417-12:10:12.811(-4)? http://localhost:3000/packages/kadira_flow-router.js?hash=db0e6448c9f2ff25ab8e1d4a3fccf4997adb3158: 519
I20160417-12:10:12.811(-4)?
I20160417-12:10:12.811(-4)? phantomjs://code/phantomjsScript.js:17
I20160417-12:10:12.811(-4)?
I20160417-12:10:12.881(-4)? MochaRunner.runServerTests: Starting server side tests with run id fSkTmQcafZnHGqvwT
W20160417-12:10:12.887(-4)? (STDERR) MochaRunner.runServerTests: failures: 0
I20160417-12:10:12.894(-4)? ClientServerReporter.constructor: Missing reporter to run tests. Use MochaRunner.setReporter(reporter) to set one.
I20160417-12:10:12.895(-4)?
I20160417-12:10:12.895(-4)? phantomjs://code/phantomjsScript.js:15 in onError
I20160417-12:10:12.895(-4)?
I20160417-12:10:12.895(-4)? : 0
I20160417-12:10:12.895(-4)?
I20160417-12:10:12.895(-4)? phantomjs://code/phantomjsScript.js:17
I20160417-12:10:12.896(-4)?
I20160417-12:10:15.949(-4)? All client and server tests finished!
I20160417-12:10:15.949(-4)?
I20160417-12:10:15.950(-4)? --------------------------------
I20160417-12:10:15.950(-4)? SERVER FAILURES: 0
I20160417-12:10:15.950(-4)? CLIENT FAILURES: 0
I20160417-12:10:15.950(-4)? --------------------------------

Process finished with exit code 0

1 Like

I am having the same issue running Meteor 1.3.2.2. Could you solve that problem?

Have you guys filed issues on github? They’re a much better way of keeping track of (and getting answers) for issues, especially for new releases.

I was able to reproduce this some moments ago.

Were issues ever filed on github?

If so, where? :smiley:
It’s not clear to me who the culprit could be…

Is it mocha, spacejam, flow-router, meteor…???

If an issue was created, can it be linked here?

I’m also running into this on 1.3.4.4

@arunoda any thoughts on this issue?