jest-editor-support
Advanced tools
Comparing version 21.3.0-beta.2 to 21.3.0-beta.3
@@ -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. |
@@ -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), |
@@ -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" | ||
} |
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
39259
768
+ Addedjest-diff@21.3.0-beta.3(transitive)
+ Addedjest-get-type@21.3.0-beta.3(transitive)
+ Addedjest-matcher-utils@21.3.0-beta.3(transitive)
+ Addedjest-snapshot@21.3.0-beta.3(transitive)
+ Addedpretty-format@21.3.0-beta.3(transitive)
- Removedjest-diff@21.3.0-beta.2(transitive)
- Removedjest-get-type@21.3.0-beta.2(transitive)
- Removedjest-matcher-utils@21.3.0-beta.2(transitive)
- Removedjest-snapshot@21.3.0-beta.2(transitive)
- Removedpretty-format@21.3.0-beta.2(transitive)
Updatedjest-snapshot@21.3.0-beta.3