Grunt: using "jasmine npm" and not "jasmine-node"

235 views
Skip to first unread message

Tomás Girardi

unread,
Nov 25, 2014, 10:57:37 AM11/25/14
to jasmi...@googlegroups.com
Does anybody know of a grunt plugin that uses "jasmine" npm module and not "jasmine-node"?

CONTEXT:
---------------------------

Until now I've been using jasmine-node npm module (https://www.npmjs.org/package/jasmine-node), but, as far as I know, it allows you to use jasmine 2.0, at most. 

I need the new functionality in jasmine 2.1, so I recently started using jasmine npm module instead (https://www.npmjs.org/package/jasmine).

Now I'm looking for a grunt plugin that I can use, but I've only found "grunt-jasmine-node" (https://github.com/jasmine-contrib/grunt-jasmine-node), which uses "jasmine-node".

---------------------------

Thanks in advance for any help :-)


Gregg Van Hove

unread,
Nov 25, 2014, 12:48:56 PM11/25/14
to jasmi...@googlegroups.com
We've only recently released the official jasmine npm, so I don't think most other libraries have had a chance to update yet.

-Gregg

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+...@googlegroups.com.
To post to this group, send email to jasmi...@googlegroups.com.
Visit this group at http://groups.google.com/group/jasmine-js.
For more options, visit https://groups.google.com/d/optout.

Tomás Girardi

unread,
Dec 1, 2014, 2:30:58 PM12/1/14
to jasmi...@googlegroups.com
Gregg,

Thanks for your response! I'll wait some time to see if anybody makes a grunt plugin and if I have no luck I could try to do it myself.

I'll take the chance to ask if you know of any option in jasmine npm that works like the "--captureExceptions" option in jasmine node.

Regards,
Tomás

Gregg Van Hove

unread,
Dec 1, 2014, 4:01:03 PM12/1/14
to jasmi...@googlegroups.com
Jasmine doesn't currently support handling global exceptions outside the context of a spec. Also, after re-reading your initial post, I think it might be possible for you to just load the grunt task in the jasmine npm to get a task you can use. I believe we've got them set up properly to be loaded, but I don't know if anyone has really tried to do that yet.

-Gregg

Tomás Girardi

unread,
Dec 1, 2014, 4:34:39 PM12/1/14
to jasmi...@googlegroups.com
Thanks Gregg! I'll try that.

About adding a functionality like jasmine-node's "--captureExceptions": should I  submit a feature request? What would be the official channel for doing that?

Regards,
Tomás

Gregg Van Hove

unread,
Dec 2, 2014, 4:24:03 PM12/2/14
to jasmi...@googlegroups.com
Pull requests and issues should be logged on github.com/jasmine/jasmine/issues.

-Gregg
Reply all
Reply to author
Forward
0 new messages