denoland / vscode_deno

Visual Studio Code plugin for Deno
https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno
MIT License
1.5k stars 146 forks source link

Test donesn't run when clicking the "play" icon #1133

Open Llorx opened 4 months ago

Llorx commented 4 months ago

When I click the play button, vscode fails with this: image image

I have a simple project: image index.ts:

export function myTest(arg:number) {
    return arg + 1;
}

index.test.ts:

import { myTest } from "./index.ts";

Deno.test("myTest", () => {
    if (myTest(1) !== 2) {
        throw new Error("wtf");
    }
});

I'm not sure what is the cause as I have deno in the path (vscode deno integration works). Is just when clicking an arrow to run a test. Also happens in the vscode Test Explorer. The tests appear but impossible to run by clicking the play button.

Versions: