ReferenceError: Can't find variable: define (Phantomjs + requirejs)
deemu opened this issue · comments
deemu commented
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.