I have install spectron using the following command npm install -g spectron
but i am unable to run globally. So I install locally as you said. have installed Jasmine and i have specified test scrips as jasmine in package.json
var Application = require('spectron').Application
var assert = require('assert')
var jasmine = require('jasmine')
describe('application launch', function () {
beforeEach(function () {
this.app = new Application({
path: 'C:\\Users\\ramass11\\AppData\\Local\\Programs\\ng-site-solutions\\ng-site-solutions.exe'
})
return this.app.start()
})
})
If I run my script using the command node First.js, I am getting "describe is not defined"
I want to know why i am getting this error and whether the way i am importing the jasmine is right ?