KotkoroidK
Denoβ€’15mo agoβ€’
3 replies
Kotkoroid

Deno runs the whole script instead of the method

I have following test:
import { expect } from "jsr:@std/expect";
import { validateInput } from "./webp.ts";

Deno.test("invalid input", () => {
  const fn = validateInput;
  const result = fn('/root', 55);
  expect(result).toThrow();
});


When I run deno test it runs the whole webp.ts script instead of just the validateInput() method.
Was this page helpful?