Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Why is not recognizing jQuery object #283

Open
wellyal opened this issue May 9, 2016 · 1 comment
Open

Why is not recognizing jQuery object #283

wellyal opened this issue May 9, 2016 · 1 comment

Comments

@wellyal
Copy link

wellyal commented May 9, 2016

I did everything was said, but I don know why I can't make it work.

{
  "spec_dir": "spec",
  "spec_files": [
    "**/*[sS]pec.js"
  ],
  "helpers": [
    "helpers/**/jquery.min.js",
    "helpers/**/jasmine.js",
    "helpers/**/jasmine-jquery.js"
  ],
  "stopSpecOnExpectationFailure": false,
  "random": false
}
$ jasmine
module.js:327
    throw err;
    ^

Error: Cannot find module 'jquery'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at /home/franklinsantos/webmail2016/skins/webmail2016/spec/helpers/jasmine-jquery.js:32:37
    at Object.<anonymous> (/home/franklinsantos/webmail2016/skins/webmail2016/spec/helpers/jasmine-jquery.js:36:2)
    at Module._compile (module.js:397:26)
    at Object.Module._extensions..js (module.js:404:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)

@wellyal wellyal changed the title Why is not recognizing a jQuery Why is not recognizing jQuery object May 9, 2016
@shadiakiki1986
Copy link

In my setup I don't have a helpers section. Check this, and run npm install jquery --save-dev on top of that

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants