Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode launch.json file example #34

Open
klzns opened this issue May 15, 2024 · 1 comment
Open

VSCode launch.json file example #34

klzns opened this issue May 15, 2024 · 1 comment

Comments

@klzns
Copy link

klzns commented May 15, 2024

Hi, nice project!

In the README it says:

Alternately you can add a launch.json file with these run properties and have vscode auto-attach to the process.

Can you provide this launch.json example? Currently is linking to a TODO.

Thanks!

@klzns
Copy link
Author

klzns commented May 15, 2024

I managed to make it work with:

{
  "name": "Run and debug Safetest",
  "type": "node",
  "request": "launch",
  "runtimeArgs": [
    "--inspect-brk",
    "${workspaceRoot}/node_modules/.bin/jest",
    "--runInBand",
    "--testMatch='**/*.safetest.{j,t}s{,x}'",
    "--setupFilesAfterEnv='<rootDir>/setup-safetest.ts'",
    "--watch"
  ],
  "console": "integratedTerminal",
  "internalConsoleOptions": "neverOpen",
  "env": {
    "OPT_URL": "http://localhost:3000/",
    "OPT_HEADED": "1"
  },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant