Git Product home page Git Product logo

Comments (6)

derwaldgeist avatar derwaldgeist commented on June 20, 2024

I have resolved this by adding --extra-packages jquery to the command line in testing mode. But tis may still have an unwanted impact on my app. So I would prefer a version of this package where jquery is not mandatory.

from meteor-mocha.

SimonSimCity avatar SimonSimCity commented on June 20, 2024

Your stack trace references to the package lmieulet:meteor-coverage. Please check if you have the latest version of this package installed. I sent a PR to the author which removed the dependency on jQuery which he merged in. This is included since the second major release. Please update to the latest version which is compatible to your Meteor version: https://github.com/serut/meteor-coverage#compatibility

If you have no need for code coverage report, you can remove the package lmieulet:meteor-coverage from your project. The less dependencies your project has the better.

I'll close it here because it's unrelated to this package.

from meteor-mocha.

derwaldgeist avatar derwaldgeist commented on June 20, 2024

Thanks for the fast response. Fun thing is, I just ran

meteor add meteortesting:mocha

and this installed the lmieulet:meteor-coverage package. I am running Meteor 1.8, maybe this is the case why outdated versions are being installed?

from meteor-mocha.

derwaldgeist avatar derwaldgeist commented on June 20, 2024

BTW: I placed a test under imports, with a .spec.js file ending, as suggested in the Meteor guide. But it won't be executed. What may be the cause of this? Both tests (client and server) report 0 passes, 0 fails.

Seems to be similar to the problem described in #78 and filed it as a new issue #99.

from meteor-mocha.

SimonSimCity avatar SimonSimCity commented on June 20, 2024

I'll try to answer your questions one by one even though they're not related to this issue:

I am running Meteor 1.8, maybe this is the case why outdated versions are being installed?

That's because of the way Meteor installs packages and their dependencies. On the Meteor Guide it states:

Note that the version solver also has a concept of โ€œgravityโ€ - when many solutions are possible for a certain set of dependencies, it always selects the oldest possible version.

Source: https://guide.meteor.com/writing-atmosphere-packages.html#version-constraints

Now your second question - which is related to importing of files:

This package only runs tests, it doesn't import any file. Importing files is the responsibility of the Meteor framework. You'd have this problem also with any other test runner.

If you have more questions please use the Meteor Community Slack channel: https://meteor-community.slack.com/

from meteor-mocha.

SimonSimCity avatar SimonSimCity commented on June 20, 2024

Published new version v2.0.0 of this package which does not include the package for code-coverage anymore. If you need it, you'll have to add it manually. This way the system will always install the latest version possible at the time you're installing it.

from meteor-mocha.

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.