aurajs / aura

A scalable, event-driven JavaScript architecture for developing component-based applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReferenceError: Can't find variable: define (Phantomjs + requirejs)

deemu opened this issue · comments

Hello,
We have implemented the Qunit for unit testing for our js script and using Aura as the framework.Test cases are executed and result are show in the browser.
I am getting the error "ReferenceError: Can't find variable: define" when running the test case on a single component .By running the below command in headless mode using phantomjs :

phantomjs main.js http:\ localhost:9032\index.html

I understand that its not able to resolve the dependencies in require.js .Please help me in solving this issue.

Thanks in Advance.