Skip to content
Permalink
Browse files

Remove array-union and array-uniq dependencies

  • Loading branch information
jimmywarting authored and novemberborn committed Dec 1, 2019
1 parent 9ec6164 commit 97571901faddf83d95dd1450ca2f131f51fb5856
Showing with 1 addition and 10 deletions.
  1. +1 −3 lib/watcher.js
  2. +0 −5 package-lock.json
  3. +0 −2 package.json
@@ -4,8 +4,6 @@ const debug = require('debug')('ava:watcher');
const diff = require('lodash/difference');
const chokidar = require('chokidar');
const flatten = require('arr-flatten');
const union = require('array-union');
const uniq = require('array-uniq');
const chalk = require('./chalk').get();
const globs = require('./globs');

@@ -411,7 +409,7 @@ class Watcher {
}

// Run all affected tests
this.run(union(addedOrChangedTests, uniq(flatten(testsByHelpersOrSource))));
this.run([...new Set(addedOrChangedTests.concat(flatten(testsByHelpersOrSource)))]);
}
}

Some generated files are not rendered by default. Learn more.

@@ -63,8 +63,6 @@
"ansi-escapes": "^4.2.1",
"ansi-styles": "^4.1.0",
"arr-flatten": "^1.1.0",
"array-union": "^2.1.0",
"array-uniq": "^2.1.0",
"arrify": "^2.0.1",
"bluebird": "^3.7.1",
"chalk": "^2.4.2",

0 comments on commit 9757190

Please sign in to comment.
You can’t perform that action at this time.