Skip to content

Commit

Permalink
incremental commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bttmly committed Dec 3, 2015
1 parent 5c917e9 commit b2ee6a0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ dogfood-parallel:
dogfood-i:
NODE_ENV=testing ./bin/perturb -r ./ -i

build:
./node_modules/babel-cli/bin/babel.js --out-dir _lib _src,

.PHONY: test example
2 changes: 0 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ function makeSourceGroupHandler (config) {
return function sourceGroupHandler (mutants, cb) {
var sourceCode = mutants[0].sourceCode;
var sourceFile = mutants[0].sourceFile;

// var mapMethod = config.parallel ? async.map : async.mapSeries;

async.mapSeries(mutants, runMutant(config), function (err, processedMutants) {
if (err) {
Expand Down
6 changes: 4 additions & 2 deletions lib/runners/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ function mochaInProcessRunner (testFile, _cb) {
var failed;

var removeMochaUncaughtExceptionListeners = R.pipe(
invoke("listeners", "uncaughtException"),
// 'liseners()' executed here when pipeline invoked
process.listeners.bind(process, "uncaughtException"),
// 'listeners()' executed here when pipeline created
R.reject(R.flip(R.contains)(process.listeners("uncaughtException"))),
R.map(process.removeListener.bind(process, "uncaughtException"))
);

function done () {
removeMochaUncaughtExceptionListeners(process);
removeMochaUncaughtExceptionListeners();
_cb(failed);
}

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"repository": "git@github.com:nickb1080/perturb.git",
"dependencies": {
"async": "^0.9.0",
"babel": "^6.1.18",
"babel-cli": "^6.2.0",
"babel-runtime": "^6.2.0",
"bluebird": "^3.0.6",
"chalk": "^0.5.1",
"change-case": "^2.2.0",
Expand Down

0 comments on commit b2ee6a0

Please sign in to comment.