Opened 9 years ago

Last modified 9 years ago

#25803 closed Uncategorized

npm test failure — at Initial Version

Reported by: Nikolas N Owned by: nobody
Component: Uncategorized Version: dev
Severity: Normal Keywords: javascript
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Following the instructions to run the JavaScript tests here: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/javascript/

I run npm install, then npm test. I'm using node.js v4.2.1, npm v3.4.1.

The command fails, and here's the output:

$ npm test

> Django@ pretest /home/nnyby/src/django
> eslint django/ js_tests/admin/ js_tests/gis/


django/contrib/admin/static/admin/js/SelectFilter2.js
   78:178  warning  Script URL is a form of eval  no-script-url
   84:138  warning  Script URL is a form of eval  no-script-url
   86:141  warning  Script URL is a form of eval  no-script-url
  108:181  warning  Script URL is a form of eval  no-script-url

django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js
  108:42  warning  Script URL is a form of eval  no-script-url
  111:44  warning  Script URL is a form of eval  no-script-url
  149:85  warning  Script URL is a form of eval  no-script-url
  150:90  warning  Script URL is a form of eval  no-script-url
  151:88  warning  Script URL is a form of eval  no-script-url
  152:86  warning  Script URL is a form of eval  no-script-url
  153:88  warning  Script URL is a form of eval  no-script-url
  157:67  warning  Script URL is a form of eval  no-script-url
  216:44  warning  Script URL is a form of eval  no-script-url
  219:42  warning  Script URL is a form of eval  no-script-url
  258:71  warning  Script URL is a form of eval  no-script-url
  260:71  warning  Script URL is a form of eval  no-script-url
  272:71  warning  Script URL is a form of eval  no-script-url
  274:67  warning  Script URL is a form of eval  no-script-url
  276:70  warning  Script URL is a form of eval  no-script-url
  281:67  warning  Script URL is a form of eval  no-script-url

django/contrib/admin/static/admin/js/calendar.js
  104:60  warning  Script URL is a form of eval  no-script-url

✖ 21 problems (0 errors, 21 warnings)


> Django@ test /home/nnyby/src/django
> grunt test --verbose

Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Initializing config...OK

Registering "grunt-blanket-qunit" local Npm module tasks.
Reading /home/nnyby/src/django/node_modules/grunt-blanket-qunit/package.json...OK
Parsing /home/nnyby/src/django/node_modules/grunt-blanket-qunit/package.json...OK
Loading "blanket_qunit.js" tasks...ERROR
>> Error: Cannot find module 'grunt-contrib-qunit/node_modules/grunt-lib-phantomjs'
>>     at Function.Module._resolveFilename (module.js:337:15)
>>     at Function.Module._load (module.js:287:25)
>>     at Module.require (module.js:366:17)
>>     at require (module.js:385:17)
>>     at Object.module.exports (/home/nnyby/src/django/node_modules/grunt-blanket-qunit/tasks/blanket_qunit.js:23:21)
>>     at loadTask (/home/nnyby/src/django/node_modules/grunt/lib/grunt/task.js:325:10)
>>     at /home/nnyby/src/django/node_modules/grunt/lib/grunt/task.js:361:7
>>     at Array.forEach (native)
>>     at loadTasks (/home/nnyby/src/django/node_modules/grunt/lib/grunt/task.js:360:11)
>>     at Task.task.loadNpmTasks (/home/nnyby/src/django/node_modules/grunt/lib/grunt/task.js:408:5)
Loading "Gruntfile.js" tasks...OK
+ default, test

Running tasks: test

Running "test" task
Warning: Task "blanket_qunit" not found. Use --force to continue.

Aborted due to warnings.
npm ERR! Test failed.  See above for more details

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top