Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oclif/test

Package Overview
Dependencies
Maintainers
3
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/test - npm Package Compare versions

Comparing version 4.0.10 to 4.1.0

1

lib/index.d.ts

@@ -5,2 +5,3 @@ import { Errors, Interfaces } from '@oclif/core';

stripAnsi?: boolean;
testNodeEnv?: string;
};

@@ -7,0 +8,0 @@ type CaptureResult<T> = {

3

lib/index.js

@@ -62,2 +62,3 @@ "use strict";

const stripAnsi = opts?.stripAnsi ?? true;
const testNodeEnv = opts?.testNodeEnv || 'test';
const originals = {

@@ -90,3 +91,3 @@ NODE_ENV: process.env.NODE_ENV,

process.stderr.write = mock('stderr');
process.env.NODE_ENV = 'test';
process.env.NODE_ENV = testNodeEnv;
try {

@@ -93,0 +94,0 @@ const result = await fn();

{
"name": "@oclif/test",
"description": "test helpers for oclif components",
"version": "4.0.10",
"version": "4.1.0",
"author": "Salesforce",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/test/issues",

@@ -27,2 +27,3 @@ # @oclif/test

- `stripAnsi` - Strip ansi codes from everything that goes to stdout and stderr. Defaults to true.
- `testNodeEnv` - Sets the `NODE_ENV` value when capturing output. Defaults to `'test'`.

@@ -29,0 +30,0 @@ See the [tests](./test/capture-output.test.ts) for example usage.

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