🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

mocha

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha - npm Package Compare versions

Comparing version

to
11.2.1

@@ -23,3 +23,3 @@ 'use strict';

const commands = require('./commands');
const ansi = require('ansi-colors');
const pc = require('picocolors');
const {repository, homepage, version, discord} = require('../../package.json');

@@ -64,3 +64,3 @@ const {cwd} = require('../utils');

yargs.showHelp();
console.error(`\n${symbols.error} ${ansi.red('ERROR:')} ${msg}`);
console.error(`\n${symbols.error} ${pc.red('ERROR:')} ${msg}`);
process.exit(1);

@@ -74,6 +74,6 @@ })

.epilog(
`${ansi.reset("Mocha Resources")}
Chat: ${ansi.magenta(discord)}
GitHub: ${ansi.blue(repository.url)}
Docs: ${ansi.yellow(homepage)}
`${pc.reset("Mocha Resources")}
Chat: ${pc.magenta(discord)}
GitHub: ${pc.blue(repository.url)}
Docs: ${pc.yellow(homepage)}
`

@@ -80,0 +80,0 @@ )

@@ -5,3 +5,3 @@ 'use strict';

const path = require('node:path');
const ansi = require('ansi-colors');
const pc = require('picocolors');
const debug = require('debug')('mocha:cli:run:helpers');

@@ -98,3 +98,3 @@ const minimatch = require('minimatch');

: 'Error: No test files found';
console.error(ansi.red(noneFoundMsg));
console.error(pc.red(noneFoundMsg));
process.exit(1);

@@ -104,3 +104,3 @@ } else {

unmatchedSpecFiles.forEach(warning => {
console.warn(ansi.yellow(`Warning: ${warning.message}`));
console.warn(pc.yellow(`Warning: ${warning.message}`));
});

@@ -107,0 +107,0 @@ }

@@ -11,3 +11,3 @@ 'use strict';

const fs = require('node:fs');
const ansi = require('ansi-colors');
const pc = require('picocolors');
const yargsParser = require('yargs-parser');

@@ -184,3 +184,3 @@ const {

if (result.error) {
console.error(ansi.red(`Error: ${result.error.message}`));
console.error(pc.red(`Error: ${result.error.message}`));
process.exit(1);

@@ -187,0 +187,0 @@ }

@@ -12,3 +12,3 @@ 'use strict';

const path = require('node:path');
const ansi = require('ansi-colors');
const pc = require('picocolors');
const debug = require('debug')('mocha:cli:run:helpers');

@@ -125,3 +125,3 @@ const {watchRun, watchParallelRun} = require('./watch-run');

console.error(
ansi.yellow(
pc.yellow(
`Warning: Cannot find any files matching pattern "${pattern}" at the absolute path "${absolutePath}"`

@@ -128,0 +128,0 @@ )

@@ -11,3 +11,3 @@ 'use strict';

const symbols = require('log-symbols');
const ansi = require('ansi-colors');
const pc = require('picocolors');
const Mocha = require('../mocha');

@@ -361,3 +361,3 @@ const {

// this could be a bad --require, bad reporter, ui, etc.
console.error(`\n${symbols.error} ${ansi.red('ERROR:')}`, err);
console.error(`\n${symbols.error} ${pc.red('ERROR:')}`, err);
yargs.exit(1);

@@ -364,0 +364,0 @@ }

{
"name": "mocha",
"version": "11.2.0",
"version": "11.2.1",
"type": "commonjs",

@@ -97,3 +97,2 @@ "description": "simple, flexible, fun test framework",

"dependencies": {
"ansi-colors": "^4.1.3",
"browser-stdout": "^1.3.1",

@@ -111,2 +110,3 @@ "chokidar": "^3.5.3",

"ms": "^2.1.3",
"picocolors": "^1.1.1",
"serialize-javascript": "^6.0.2",

@@ -113,0 +113,0 @@ "strip-json-comments": "^3.1.1",

Sorry, the diff of this file is too big to display