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

jest-editor-support

Package Overview
Dependencies
Maintainers
5
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-editor-support - npm Package Compare versions

Comparing version 21.3.0-beta.2 to 21.3.0-beta.3

11

build/Runner.js

@@ -32,5 +32,7 @@ 'use strict';Object.defineProperty(exports, "__esModule", { value: true });var _child_process;

constructor(workspace, options) {
super();
this._createProcess = options && options.createProcess || (_Process || _load_Process()).createProcess;
this.options = options || {};
this.workspace = workspace;

@@ -53,2 +55,8 @@ this.outputPath = (0, (_os || _load_os()).tmpdir)() + '/jest_runner.json';

if (this.watchMode) args.push('--watch');
if (this.options.testNamePattern) {
args.push('--testNamePattern', this.options.testNamePattern);
}
if (this.options.testFileNamePattern) {
args.push(this.options.testFileNamePattern);
}

@@ -103,2 +111,5 @@ this.debugprocess = this._createProcess(this.workspace, args);

closeProcess() {
if (!this.debugprocess) {
return;
}
if (process.platform === 'win32') {

@@ -105,0 +116,0 @@ // Windows doesn't exit the process when it should.

10

build/Snapshot.js

@@ -34,3 +34,5 @@ /**

const base = Object.assign(Object.create(null), {
const base = Object.assign(
Object.create(null),
{
describe: true,

@@ -40,3 +42,6 @@ it: true,

const decorators = Object.assign(Object.create(null), {
const decorators = Object.assign(
Object.create(null),
{
only: true,

@@ -46,2 +51,3 @@ skip: true });

const validParents = Object.assign(

@@ -48,0 +54,0 @@ Object.create(null),

16

index.d.ts

@@ -9,5 +9,17 @@ /**

import { EventEmitter } from 'events';
import { ChildProcess } from 'child_process';
export interface Options {
createProcess?(
workspace: ProjectWorkspace,
args: string[],
debugPort?: number,
): ChildProcess;
debugPort?: number;
testNamePattern?: string;
testFileNamePattern?: string;
}
export class Runner extends EventEmitter {
constructor(workspace: ProjectWorkspace);
constructor(workspace: ProjectWorkspace, options?: Options);
watchMode: boolean;

@@ -36,2 +48,3 @@ start(watchMode?: boolean): void;

pathToJest: string;
pathToConfig: string;
rootPath: string;

@@ -112,2 +125,3 @@ localJestMajorVersion: number;

failureMessages: string[];
fullName: string;
}

@@ -114,0 +128,0 @@

{
"name": "jest-editor-support",
"version": "21.3.0-beta.2",
"version": "21.3.0-beta.3",
"repository": {

@@ -13,5 +13,5 @@ "type": "git",

"babylon": "^6.14.1",
"jest-snapshot": "21.3.0-beta.2"
"jest-snapshot": "21.3.0-beta.3"
},
"typings": "index.d.ts"
}
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