Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

VS Code - debugging tests - cannot connect to runtime process, timeout after 10000 ms #209

Closed
@MatejBransky

Description

@MatejBransky

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

react-scripts-ts vs code debug
react-scripts-ts vs code debug tests
typescript jest vs code Cannot connect to runtime process, timeout after 10000 ms
vs code Cannot connect to runtime process, timeout after 10000 ms
...

Environment

  1. node -v: 8.9.1
  2. npm -v: 5.5.1
  3. yarn --version (if you use Yarn):
  4. npm ls react-scripts-ts (if you haven’t ejected): 2.8.0

Then, specify:

  1. Operating system: Windows 10
  2. Browser and version (if relevant): -

Steps to Reproduce

  1. create project with create-react-app --scripts-version=react-scripts-ts
  2. set debugging tests
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug CRA Tests",
      "type": "node",
      "request": "launch",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts-ts",
      "runtimeArgs": [
        "--inspect-brk",
        "test"
      ],
      "args": [
        "--runInBand",
        "--no-cache"
      ],
      "cwd": "${workspaceRoot}",
      "protocol": "inspector",
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen"
    }
  ]
}
  1. run debugging test in VS Code

Expected Behavior

It should start the debugging of tests.

Actual Behavior

Until a few seconds it shows error message:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions