Skip to content

PhantomJS timed out #92

@georgezhang

Description

@georgezhang

Error:

Running "jasmine:taskName" (jasmine) task
Testing Jasmine specs via PhantomJS
Warning: PhantomJS timed out, possibly due to an unfinished async spec. Use --force to continue.

Gruntfile.js

#```javascript
module.exports = function(grunt) {

// Example configuration using a single requireJS config file
grunt.initConfig({
jasmine: {
taskName: {
src: 'src/*.js',
options: {
specs: 'spec/*Spec.js',
//helpers: 'spec/*Helper.js',
template: require('grunt-template-jasmine-requirejs'),
templateOptions: {
//requireConfigFile: 'src/main.js'
}
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-jasmine');

// Default task(s).
grunt.registerTask('test', ['jasmine:taskName']); //'jasmine:global',

};



package.json

  "devDependencies": {
    "grunt": "*",
    "grunt-contrib-jasmine": "^1.1.0",
    "grunt-contrib-uglify": "*",
    "grunt-contrib-watch": "*",
    "grunt-template-jasmine-requirejs": "^0.2.3",
    "grunt-umd": "*"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions