vscode-mocha-test-adapter
vscode-mocha-test-adapter copied to clipboard
Could not read source map .vscode-server/extensions/hbenl.vscode-mocha-test-adapter-2.13.5/out/worker/bundle.js.map
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
- Solve the problem so that a map file is found or
- Suppress the error in the debug console