TypeError: 'undefined' is not a constructor
I have this project configured and working locally on my machine (win7). However, when I push exact code to cloud(ec2) I get this error when it reaches the line in SpecRunner where it is trying to create the console reporter. I was initially working with Phantom 1.6 and I just upgraded to 1.7 but that did not resolve the issue.
TypeError: 'undefined' is not a constructor (evaluating 'new jasmine.ConsoleReporter()')
Do you have any ideas on where to go next? I tried starting phantom with --debug turned on but I didn't get any further output. I ran some of the examples in the phantomjs project so I feel comfortable that should be working.
I tried running phantom with just the run_jasmine_test and no param for spec runner and I appropriately get error mesage about providing url as argument.
I did notice that if I changed the script tag in my test runner to a bad path for the console reporter it didn't seem to matter which I thought was odd. Any ideas as to what might be wrong?
Have the same issue... but this project seems rather dead :(
I never was able to get this working but I got my overall solution working by removing this project. It is not a requirement to have this to make phantom run some jasmine tests. I went the route of using built in phantom functionality and wrote my own script.
I actually did get it working just now, the solution was quite simple...
https://github.com/alcohol/chromium-header-ext https://travis-ci.org/alcohol/chromium-header-ext
I simply removed the TrivialReporter reference and no longer load the jasmine-html.js file (which contains trivial/html reporter). I setup a separate html file for the console suite (tests/testsuite-console.html) and use the html reporter only for my local testing in the browser.
Don't pay too much attention to the project itself, it's more of a toy than a serious useful product :trollface: