Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jasmine + SailsJS Unit Tests #4424

Closed
daspecster opened this issue May 25, 2018 · 10 comments
Closed

Jasmine + SailsJS Unit Tests #4424

daspecster opened this issue May 25, 2018 · 10 comments

Comments

@daspecster
Copy link

daspecster commented May 25, 2018

Sails version: 1.0

Node version: 10.1
NPM version: 5.6.0

DB adapter name: sails-disk

DB adapter version: 1.01
Operating system: macos


Hello!
I cannot seem to get SailsJS and Jasmine to play well together.
This very well may be an issue in my missing some feature in Jasmine but I can't seem to figure out a good way to run sails.lift() in the lifecycle of testing when switching from Mocha to Jasmine.

Any help with this would be greatly appreciated and once working, I would be happy to contribute to documentation to help others.

Thank you!

@sailsbot
Copy link

Hi @daspecster! It looks like you missed a step or two when you created your issue. Please edit your comment (use the pencil icon at the top-right corner of the comment box) and fix the following:

  • Provide your Sails version
  • Provide your Node version
  • Provide your NPM version
  • Provide your Operating system
  • Verify "I am experiencing a concrete technical issue (aka a bug) with Sails (ideas and feature proposals should follow the guide for proposing features and enhancements (http://bit.ly/sails-feature-guide), which involves making a pull request). If you're not 100% certain whether it's a bug or not, that's okay--you may continue. The worst that can happen is that the issue will be closed and we'll point you in the right direction."
  • Verify "I am not asking a question about how to use Sails or about whether or not Sails has a certain feature (please refer to the documentation(http://sailsjs.com), or post on http://stackoverflow.com, our Google Group (http://bit.ly/sails-google-group) or our live chat (https://gitter.im/balderdashy/sails)."
  • Verify "I have already searched for related issues, and found none open (if you found a related closed issue, please link to it in your post)."
  • Verify "My issue title is concise, on-topic and polite ("jst.js being removed from layout.ejs on lift" is good; "templates dont work" or "why is sails dumb" are not so good)."
  • Verify "I have tried all the following (if relevant) and my issue remains:"
  • Verify "I can provide steps to reproduce this issue that others can follow."

As soon as those items are rectified, post a new comment (e.g. “Ok, fixed!”) below and we'll take a look. Thanks!

*If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact [email protected]

@daspecster
Copy link
Author

Ok, fixed!

@sailsbot
Copy link

Sorry to be a hassle, but it looks like your issue is still missing some required info. Please double-check your initial comment and try again.

*If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact [email protected]

@daspecster
Copy link
Author

Ok, fixed!

@sailsbot
Copy link

Sorry to be a hassle, but it looks like your issue is still missing some required info. Please double-check your initial comment and try again.

*If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact [email protected]

@daspecster
Copy link
Author

Ok, fixed!

@sailsbot
Copy link

@daspecster Thanks for posting, we'll take a look as soon as possible.


For help with questions about Sails, click here. If you’re interested in hiring @sailsbot and her minions in Austin, click here.

@leosuncin
Copy link

@daspecster may you check my issue #4395 maybe it is related to this.

@johnabrams7
Copy link
Contributor

johnabrams7 commented Apr 16, 2019

Sails v1.1.0 updated compatibility with test frameworks such as Mocha and Jasmine which have also been updated recently. Have you tried lifting the latest Sails with the latest Jasmine framework?

@daspecster
Copy link
Author

Great news! Will try that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants