We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c5eb9 commit 8f6d95dCopy full SHA for 8f6d95d
lib/default-input.js
@@ -8,7 +8,17 @@ const npa = require('npm-package-arg')
8
const semver = require('semver')
9
10
// more popular packages should go here, maybe?
11
-const isTestPkg = (p) => !!p.match(/^(expresso|mocha|tap|coffee-script|coco|streamline)$/)
+const testPkgs = [
12
+ 'coco',
13
+ 'coffee-script',
14
+ 'expresso',
15
+ 'jasmine',
16
+ 'jest',
17
+ 'mocha',
18
+ 'streamline',
19
+ 'tap',
20
+]
21
+const isTestPkg = p => testPkgs.includes(p)
22
23
const invalid = (msg) => Object.assign(new Error(msg), { notValid: true })
24
0 commit comments