Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Resolving JavaScript Function References

$
0
0

I have a test basic test suite file called app.unit.js:

 

describe('app', function() {    describe('initialize', function() {        it('should do stuff', function() {            expect(true).to.be.true;        });    });}); 

 

When I open it in IDEA IntellJ 14 it cannot find references for describe, it, or be. I tried inserting a Visual Studio style reference:

 

/// <reference path="../components/mocha/mocha.js" />

 

But it doesn't seem to pick up the reference.  The library comes in via bower and there is an project-level entry in Settings > Languages & Frameworks > JavaScript > Libraries for the bower components folder.  I would expect that this is all that is necessary to do reference resolution.  This seems like basic functionality.  Any advice on how to get it working?  It just works in Visual Studio.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>