How to use the jest-editor-support.Runner function in jest-editor-support

To help you get started, we’ve selected a few jest-editor-support examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Raathigesh / majestic / app / src / renderer / stores / Runner.ts View on Github external
initializeRunner({ testFileNamePattern, testNamePattern }) {
    // @ts-ignore
    this.runner = new Runner(
      {
        rootPath: this.rootPath,
        pathToJest: this.pathToJest,
        localJestMajorVersion: this.localJestMajorVersion,
        pathToConfig: getConfigFilePath(this.rootPath)
      },
      {
        testFileNamePattern,
        testNamePattern,
        createProcess
      }
    );

    this.runner
      .on("executableJSON", (data: JestTotalResults) => {
        const results = this.reconciler.updateFileWithJestStatus(data);
github jest-community / vscode-jest / src / JestProcessManagement / JestProcess.ts View on Github external
private startRunner() {
    this.stopResolveCallback = null
    let exited = false

    const options = {
      noColor: true,
      shell: platform() === 'win32',
    }
    this.runner = new Runner(this.projectWorkspace, options)

    this.restoreJestEvents()

    this.runner.start(this.watchMode !== WatchMode.None, this.watchMode === WatchMode.WatchAll)

    this.runner.on('debuggerProcessExit', () => {
      if (!exited) {
        exited = true
        if (--this.keepAliveCounter > 0) {
          this.runner.removeAllListeners()
          this.startRunner()
        } else {
          if (this.onExitCallback) {
            this.onExitCallback(this)
          }
          if (this.stopResolveCallback) {

jest-editor-support

[![Build Status](https://github.com/jest-community/jest-editor-support/actions/workflows/node-ci.yml/badge.svg)](https://github.com/jest-community/jest-editor-support/actions) [![Coverage Status](https://coveralls.io/repos/github/jest-community/jest-edito

MIT
Latest version published 6 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages