Comments (6)
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.
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.
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.
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.
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.
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)
- browser-shim.js prevents nice console logs HOT 1
- Puppeteer app-test yields "TypeError: Cannot read property 'call' of undefined"
- texts from `describe` and `it` blocks are not printed when using browser `nightmare` HOT 3
- Tests are only re-run if I change a *.tests.* file, not if I change implementation files (e.g. server/...) HOT 3
- UnhandledPromiseRejectionWarning: Error: Protocol error (Runtime.callFunctionOn): Promise was collected HOT 1
- Running tests do not finish after the end inside CI HOT 3
- How to setup a global hook for database prefills (fixtures) HOT 2
- XML report output is missing for client tests
- Need upgrade to dependencies to work with Meteor 2.3 HOT 1
- Bump supported dependency versions of lmieulet:meteor-coverage to 4.0.0 HOT 2
- Error: Timeout of 2000ms exceeded
- CSS missing during client side tests due to brower-policy HOT 1
- No tests running in parallel HOT 1
- Allow running specific server tests or hooks after client tests in full app mode
- Run test for multiple specific filename
- Move tests from CI to GitHub actions HOT 3
- The meteor http package is deprecated HOT 3
- client/compatibility js files HOT 3
- Eager loading of tests does not work as described in the Meteor guide HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-mocha.