vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

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

Open Llorx opened this issue 1 year ago • 1 comments

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:

  • Windows 10
  • deno 1.44.4
  • deno extension v3.38.0
  • vscode 1.90

Llorx avatar Jul 17 '24 10:07 Llorx