#25803: npm test failure -------------------------------+-------------------------------------- Reporter: nikolas | Owner: nobody Type: Uncategorized | Status: closed Component: Uncategorized | Version: master Severity: Normal | Resolution: worksforme Keywords: javascript | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------------------------- Description changed by nikolas:
Old 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 > }}} New description: Following the instructions to run the JavaScript tests here: https://docs.djangoproject.com/en/dev/internals/contributing/writing- code/javascript/#running-tests 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 }}} -- -- Ticket URL: <https://code.djangoproject.com/ticket/25803#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.297944e3d93c72d8e8081f32b83a5d37%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.