avajs / ava

Node.js test runner that lets you develop with confidence 🚀
MIT License
20.74k stars 1.41k forks source link

Typescript with VS Code debug issue #3276

Closed AaronPorts closed 11 months ago

AaronPorts commented 11 months ago

It seems like debugging in VSCode is not working with Typescript in my case. I'm working in a monorepo, Node v21.4.0, TS 5.3.3, Ava 6.0.1.

ava.config.js:

  failFast: false,
  timeout: "30s",
  files: ["tests/**/*.test.ts"],
  extensions: { ts: "module" },
  workerThreads: false,
  require: ["dotenv/config"],

I'm using tsx and JavaScript Debug Terminal: cross-env NODE_OPTIONS=--import=tsx DOTENV_CONFIG_PATH=./.development.env ava , but the breakpoints are not being triggered.