How to use the nodeunit-x.runFiles function in nodeunit-x

To help you get started, we’ve selected a few nodeunit-x examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gruntjs / grunt-contrib-nodeunit / tasks / nodeunit.js View on Github external
grunt.warn('0/0 assertions ran (' + assertions.duration + 'ms)');
          } else {
            grunt.verbose.writeln();
            grunt.log.ok(assertions.length + ' assertions passed (' +
              assertions.duration + 'ms)');
          }
          // Tell the task manager we're all done.
          callback(); // callback(assertions.failures() === 0);
        }
      };

      // Nodeunit needs absolute paths.
      var paths = files.map(function(filepath) {
        return path.resolve(filepath);
      });
      nodeunit.runFiles(paths, opts);
    }
  };

nodeunit-x

Easy unit testing for node.js and the browser.

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Popular nodeunit-x functions

Similar packages