hbenl / vscode-mocha-test-adapter

Mocha Test Adapter for the VS Code Test Explorer
MIT License
91 stars 31 forks source link

Could not read source map .vscode-server/extensions/hbenl.vscode-mocha-test-adapter-2.13.5/out/worker/bundle.js.map #212

Open swtrse opened 2 years ago

swtrse commented 2 years ago

System: WSL2 Mocha Test Explorer: v2.13.5 Node: 16

I am running some unit tests using this settings in the settings.json

"mochaExplorer.files": "test/**/*.{j,t}s",
  "mochaExplorer.watch": "test/**/*.{j,t}s",
  "mochaExplorer.parallel": true,
  "mochaExplorer.jobs": 4,
  "mochaExplorer.fullTrace": true,
  "mochaExplorer.exit": true,
  "mochaExplorer.require": ["ts-node/register", "hardhat/register"],

Everthing seems to work fine except when I run a test with the debug button the Debug Console shows the message

Could not read source map for file:///home/user/.vscode-server/extensions/hbenl.vscode-mocha-test-adapter-2.13.5/out/worker/bundle.js: ENOENT: no such file or directory, open '/home/user/.vscode-server/extensions/hbenl.vscode-mocha-test-adapter-2.13.5/out/worker/bundle.js.map'

This is perfectly fine because the file really is missing. The message does not seem to have any affect on the unit test so I simply ignore it. What I would like is to either 1) Solve the problem so that a map file is found or 2) Suppress the error in the debug console