Socket
Socket
Sign inDemoInstall

mocha-list-tests

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-list-tests - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

11

mocha-list-tests.js

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc