Skip to content

Instantly share code, notes, and snippets.

@cmichaelgraham
Last active August 29, 2015 14:12
Show Gist options
  • Save cmichaelgraham/2b42631d8bebb3948a96 to your computer and use it in GitHub Desktop.
Save cmichaelgraham/2b42631d8bebb3948a96 to your computer and use it in GitHub Desktop.
Getting karma-jspm to work on Windows

windows karma start issue update: karma-jspm hasn't changed the function that causes the problem: https://github.com/Workiva/karma-jspm/blob/master/src/init.js#L27

to get tests to run, follow the recipe: from the installed repo, navigate to .\node_modules\karma-jspm\src, edit init.js

change this:

function expandGlob(file) {
  return glob.sync(file.pattern || file).map(function (filePath) {
    return filePath.replace(/\//g, path.sep);
  });
};

to this:

function expandGlob(file) {
  return glob.sync(file.pattern || file);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment