How to use the @stryker-mutator/util.isErrnoException function in @stryker-mutator/util

To help you get started, we’ve selected a few @stryker-mutator/util 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 stryker-mutator / stryker / packages / core / src / input / InputFileResolver.ts View on Github external
.catch(error => {
        if ((isErrnoException(error) && error.code === 'ENOENT') || error.code === 'EISDIR') {
          return null; // file is deleted or a directory. This can be a valid result of the git command
        } else {
          // Rethrow
          throw error;
        }
      });
  }
github stryker-mutator / stryker / packages / stryker / src / input / InputFileResolver.ts View on Github external
.catch(error => {
        if (
          (isErrnoException(error) && error.code === 'ENOENT') ||
          error.code === 'EISDIR'
        ) {
          return null; // file is deleted or a directory. This can be a valid result of the git command
        } else {
          // Rethrow
          throw error;
        }
      });
  }
github stryker-mutator / stryker / packages / core / src / child-proxy / ChildProcessProxy.ts View on Github external
private innerProcessIsCrashed(error: Error) {
    return isErrnoException(error) && (error.code === BROKEN_PIPE_ERROR_CODE || error.code === IPC_CHANNEL_CLOSED_ERROR_CODE);
  }
github stryker-mutator / stryker / packages / stryker / src / child-proxy / ChildProcessProxy.ts View on Github external
private innerProcessIsCrashed(error: Error) {
    return isErrnoException(error) && (error.code === BROKEN_PIPE_ERROR_CODE || error.code === IPC_CHANNEL_CLOSED_ERROR_CODE);
  }