Giter Site home page Giter Site logo

no provider error about karma-mocha HOT 11 CLOSED

karma-runner avatar karma-runner commented on August 9, 2024
no provider error

from karma-mocha.

Comments (11)

dignifiedquire avatar dignifiedquire commented on August 9, 2024 1

Do you have karma or karma-cli installed globally?

from karma-mocha.

skarfacegc avatar skarfacegc commented on August 9, 2024 1

.... and I needed karma-cli thanks.

from karma-mocha.

maksimr avatar maksimr commented on August 9, 2024

@skarfacegc strange, can your post list of files and dirs in root directory? If remove plugin property problem still exists?

Thanks

from karma-mocha.

skarfacegc avatar skarfacegc commented on August 9, 2024

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.

maksimr avatar maksimr commented on August 9, 2024

@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.

skarfacegc avatar skarfacegc commented on August 9, 2024

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.

skarfacegc avatar skarfacegc commented on August 9, 2024

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.

dignifiedquire avatar dignifiedquire commented on August 9, 2024

Sometimes it's enough to ask the right questions :)

from karma-mocha.

maksimr avatar maksimr commented on August 9, 2024

@dignifiedquire this problem is a stone thrown to garden of issue :)

from karma-mocha.

skarfacegc avatar skarfacegc commented on August 9, 2024

@maksimr I was going to say something similar.

from karma-mocha.

quantuminformation avatar quantuminformation commented on August 9, 2024

Would be nice if the karma init added karma-mocha automatically if you specify mocha.

from karma-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.