mocha-list-tests
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -31,2 +31,5 @@ // ----------------------------------------------------------------------------- | ||
} | ||
else if (fs.existsSync(filepath + '.mjs')) { | ||
filepath += '.mjs'; | ||
} | ||
else { | ||
@@ -199,3 +202,7 @@ throw new Error("cannot resolve path (or pattern) '" + filepath + "'"); | ||
let allTestFiles = lookupFiles (testFolder, extensions || ['js'], true); | ||
let allTestFiles = lookupFiles ( | ||
testFolder, | ||
extensions || ['js', 'mjs'], | ||
true | ||
); | ||
@@ -255,3 +262,3 @@ // HOOK: describe/it function hooks | ||
const result = await findSuitesAndTests (testFolder, 'js'); | ||
const result = await findSuitesAndTests (testFolder, ['js', 'mjs']); | ||
console.log (JSON.stringify (result, null, ' ')); | ||
@@ -258,0 +265,0 @@ |
{ | ||
"name": "mocha-list-tests", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "List mocha suites and tests without running anything", | ||
@@ -5,0 +5,0 @@ "main": "mocha-list-tests.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15419
351