VS Code integration for node:test native tests
If I attempt to run an individual failing test VSCode will open a new editor tab with an empty file '/<anonymous>' and an error message `The editor could not be opened because the file was not found.` This only happens when running a test individually, not from a describe block etc. It does not happen on a successful test. I have verified that it happens if using simple `assert` or using Chai. In addition to popping up the new tab, the inline error & log messages don't show. The test is still listed as having failed in the outliner and the editor margin. An example: ```typescript import { describe, it } from "node:test"; import { expect } from "chai"; describe('base64ToHex', () => { it('handles empty string', () => { // I would expect to see an error message here when the test fails const base64 = ''; const expectedHex = ''; console.log("ping") // I would expect to see 'ping' here when the test is run expect(base64ToHex(base64)).to.not.equal(expectedHex); console.log("pong") }); }); ``` My vscode version is 1.91.1, node 22.5.1, and I'm running with these settings: ```json "nodejs-testing.extensions": [ { "extensions": [ "mjs", "cjs", "js" ], "parameters": [] }, { "extensions": ["mts", "cts", "ts"], "parameters": ["--import", "tsx"] } ], "nodejs-testing.include": [ "./", "./src./tests/" ], ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by aantia and has received 1 comments.