title: JsPsych What kind of unit tests are these? Javascript
body: <p>I'm working on an existing project but I am new to Javascript. The project can be found here, it is JsPsych and I've searched the documentation here and cannot find the answer (<a href="http://docs.jspsych.org/" rel="nofollow noreferrer">http://docs.jspsych.org/</a>)</p>
  
  <p>I don't understand how they are doing unit tests. I have found the "testing" folder and you can view it below, here. </p>
  
  <p><a href="https://i.stack.imgur.com/1TdgY.png" rel="nofollow noreferrer">JsPsych test folder</a></p>
  
  <p>Here's an example called "load.test.js"</p>
  
  <pre><code>const root = '../';
  require(root + 'jspsych.js');
  require(root + 'plugins/jspsych-single-stim.js');
  
  test('jsPsych should be in the window object', function(){
    expect(typeof window.jsPsych).not.toBe('undefined');
  });
  </code></pre>
  
  <p>Does anyone recognize this type of unit test? Is this supposed to be paired with some software? Can someone explain how I would actually run this? </p>