meteor-fresh icon indicating copy to clipboard operation
meteor-fresh copied to clipboard

Jasmine tests logging an error in the console

Open cjsauer opened this issue 9 years ago • 6 comments

Upon starting up the app and navigating to the homepage, the following error is logged:

Exception in setTimeout callback: TypeError: Cannot read property 'match' of undefined
    at translateUrl (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2780:24)
    at toSockjsUrl (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2830:10)
    at _.extend._launchConnection (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2708:30)
    at new LivedataTest.ClientStream (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2582:8)
    at new Connection (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:3522:20)
    at Object.DDP.connect (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:5090:13)
    at http://localhost:3000/packages/sanjo_jasmine.js?46996959cf65cb76c4b8a9c4a65eaf702d790e8a:4236:35
    at _.extend.withValue (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:955:17)
    at withoutInvocation (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:435:45)
    at Meteor.bindEnvironment (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:983:22)

cjsauer avatar Jun 14 '15 20:06 cjsauer

no problems on the testing branch for me. can you tell me how it happens?

Davidsoff avatar Jun 16 '15 19:06 Davidsoff

Interesting...

Repro:

  1. git clone [email protected]:cjsauer/meteor-fresh.git quick-test
  2. cd quick-test && git checkout testing
  3. meteor
  4. Observe error in chrome console at http://localhost:3000

I'm using Google Chrome on Ubuntu 14.04

cjsauer avatar Jun 16 '15 20:06 cjsauer

sure is.

works fine on my machine: Chrome 43.0.2357.125 (64-bit) on Ubuntu 15.04

Davidsoff avatar Jun 16 '15 20:06 Davidsoff

Are you talking about the Karma window that pops up, or native Chrome? I'm not getting that error from within the Karma browser.

EDIT: I'm not getting any errors in Firefox

cjsauer avatar Jun 16 '15 21:06 cjsauer

the Chrome window. Firefox is running fine aswell

Davidsoff avatar Jun 16 '15 21:06 Davidsoff

Jonas has tagged this as a bug on the Jasmine repo. We'll see if he can find an issue with it. There's also a bug with client integration tests that's currently preventing them from running. I'd like Meteor Fresh testing to work out of the box, so I'll wait to complete that pull request.

cjsauer avatar Jun 16 '15 22:06 cjsauer