title: Getting Jasmine to run on the server-side
body: <p>I'm trying to get started on testing JavaScript on the server-side with Node.JS</p>
  
  <p>I'm using <a href="http://gruntjs.com" rel="noreferrer"><strong>grunt</strong></a>, and <a href="https://github.com/jasmine-contrib/grunt-jasmine-node" rel="noreferrer"><strong>grunt-jasmine-node</strong></a>, but I can't get it to run my tests.</p>
  
  <p>It just logs</p>
  
  <blockquote>
    <p>PS C:\Development\NET\Source\jsn> grunt Running "jasmine_node" task
    undefined</p>
    
    <p>Finished in 0.001 seconds 0 tests, 0 assertions, 0 failures</p>
    
    <p>Done, without errors.</p>
  </blockquote>
  
  <p>This is my <code>Gruntfile.js</code></p>
  
  <pre><code>module.exports = function(grunt) {
      grunt.initConfig({
          pkg: grunt.file.readJSON('package.json'),
          jasmine_node: {
              specNameMatcher: 'spec',
              projectRoot: '.',
              requirejs: false,
              forceExit: true,
              jUnit: {
                  report: false,
                  savePath : "./build/reports/jasmine/",
                  useDotNotation: true,
                  consolidate: true
              }
          }
      });
  
      grunt.loadNpmTasks('grunt-jasmine-node');
      grunt.registerTask('default', 'jasmine_node');
  };
  </code></pre>
  
  <p>And my file structure is this:</p>
  
  <p><img src="https://i.stack.imgur.com/HLTFE.png" alt="enter image description here" title="File structure"></p>
  
  <p>So, what am I doing wrong?</p>
  
  <p>It's like the <code>stub.js</code> file isn't ever even loaded, because it has a <code>console.log</code> call in it to test that.</p>