Giter VIP home page Giter VIP logo

Comments (5)

jsoverson avatar jsoverson commented on August 15, 2024

This is due to two things, a missing slash at the end of the host option so the url generated is malformed and the connect task in npm not seeming to respect custom port config. The npm version isn't up to date with the repo so this is likely fixed.

In order to get you further, change your host line to

host: 'http://127.0.0.1:<%= connect.port %>/',

And set the port to 8000 in connect until that gets updated.

I'll add some protection against malformed urls, thanks for the heads up.

from grunt-contrib-jasmine.

mattd avatar mattd commented on August 15, 2024

I was actually already running the current head of grunt-contrib-connect. Adding the trailing slash does appear to have changed something, but it hasn't fixed it. Previously, the task would fail with the timeout error. Now it just hangs indefinitely.

from grunt-contrib-jasmine.

jsoverson avatar jsoverson commented on August 15, 2024

Can you run your tests via grunt connect jasmine -vd and post your output? (substitute your multitask directives if necessary)

I am trying to replicate your issue and I can't with the gist you provided, the trailing slash added, and grunt-contrib-connect running from head (with custom ports supported).

from grunt-contrib-jasmine.

mattd avatar mattd commented on August 15, 2024

D....oh.

So there were, by my count, 4 errors with what I was trying to do. Youch. There were the two you pointed out. Then

  1. I was trying to run the jasmine task without also running connect.
  2. I was trying to set the connect port inside the options hash instead of at the root of the task settings. Running in verbose tipped me off to that.

Thanks so much for your help! Sorry to waste your time - especially on a weekend.

from grunt-contrib-jasmine.

jsoverson avatar jsoverson commented on August 15, 2024

No problem, glad it worked out and thanks for highlighting some documentation failures. I'll take care of that soon.

from grunt-contrib-jasmine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.