Comments (11)
Do you have karma
or karma-cli
installed globally?
from karma-mocha.
.... and I needed karma-cli thanks.
from karma-mocha.
@skarfacegc strange, can your post list of files and dirs in root directory? If remove plugin property problem still exists?
Thanks
from karma-mocha.
project root (which is what I think you were asking for)
I've tried this with and without setting the plugins directive.
One possible bit of strangeness is that my hostname is karma, not sure if that would screw with anything.
drwxr-xr-x 3 102 Jun 16 23:23 bin
drwxr-xr-x 4 136 Jun 16 23:23 config
drwxr-xr-x 6 204 Jun 17 21:39 coverage
drwxr-xr-x 8 272 Jun 19 22:35 lib
drwxr-xr-x 37 1258 Jun 20 23:29 node_modules
drwxr-xr-x 4 136 May 27 23:41 sandbox
drwxr-xr-x 5 170 Jun 16 23:23 test
drwxr-xr-x 7 238 Jun 20 23:29 www
-rw-r--r-- 1 2462 Jun 16 23:23 DEVLOG.md
-rw-r--r-- 1 271 Jun 9 00:58 FlowTrack2.sublime-project
-rw-r--r-- 1 29367 Jun 20 09:07 FlowTrack2.sublime-workspace
-rw-r--r-- 1 3819 Jun 16 23:23 Gruntfile.js
-rw-r--r-- 1 1083 May 16 12:46 LICENSE
-rw-r--r-- 1 1321 Jun 7 20:50 NOTES.md
-rw-r--r-- 1 2148 Jun 19 20:55 README.md
-rw-r--r-- 1 474 Jun 16 23:23 bower.json
-rw-r--r-- 1 2582 Jun 20 00:28 gulpfile.js
-rw-r--r-- 1 1777 Jun 20 23:29 karma.conf.js
-rw-r--r-- 1 1409 Jun 20 16:35 package.json
from karma-mocha.
@skarfacegc can you run node
repl in root directory and execute code like require('karma-mocha')
.
Karma load plugins using standard nodejs' require
function. Maybe problem in configuration nodejs/npm.
P.S.
How you run karma? From root/project directory?
Seems you run karma outside of project directory
Thanks!
from karma-mocha.
I run karma from the directory I listed above.
From the same directory:
node
> require('karma-mocha')
{ 'framework:mocha': [ 'factory', { [Function] '$inject': [Object] } ] }
>
from karma-mocha.
one more bit of info. When I run karma from the node_modules directory of my project it seems to work. If I run the globally installed karma it doesn't.
from karma-mocha.
Sometimes it's enough to ask the right questions :)
from karma-mocha.
@dignifiedquire this problem is a stone thrown to garden of issue :)
from karma-mocha.
@maksimr I was going to say something similar.
from karma-mocha.
Would be nice if the karma init added karma-mocha
automatically if you specify mocha.
from karma-mocha.
Related Issues (20)
- Passed --grep option persists across test runs HOT 1
- npm test - Uncaught ReferenceError: describe is not defined HOT 3
- No provider for "framework:mocha"! (Resolving: framework:mocha) HOT 11
- karma tests slowed down with mocha 4
- Applying polyfill before loading mocha HOT 6
- Can I keep tests in a normal mocha index.html? HOT 3
- Delay __karma__.start() until es6 test modules have been loaded HOT 1
- maintainers and status of project HOT 4
- Usage of exact version of minimist HOT 4
- When will commit: 36404cf36aa5150f839c98d10baa8c642faad098 will be relaesed? HOT 1
- Uncaught exception: emitting a 'test end' event for a hook HOT 1
- Redundant Mocha Reporter Node <div id="mocha"></div> HOT 1
- Uncaught exceptions in between Mocha tests are not reported HOT 2
- Support for mocha root hooks
- adapter.js swallows failures that occur after test complete
- Unit tests are missing when `script type="module"` takes >= 3ms before `describe` HOT 1
- Reestablish CI/CD with GitHub Actions
- The dependency minimist "^1.2.3" is declared as vulnerable need to update to 1.2.6 or more HOT 1
- Status of this project? HOT 4
- Analysis: 76% of dependency updates in this repository can be merged.
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 karma-mocha.