import { expect, test } from "vitest"; // <- "Cannot find module 'vitest' or its corresponding type declarations.ts(2307)function sum(a, b) { return a + b}test('adds 1 + 2 to equal 3', () => { expect(sum(1, 2)).toBe(3)})
import { expect, test } from "vitest"; // <- "Cannot find module 'vitest' or its corresponding type declarations.ts(2307)function sum(a, b) { return a + b}test('adds 1 + 2 to equal 3', () => { expect(sum(1, 2)).toBe(3)})
Why can the type declarations not be found?
deno install
deno install
doesn't seem to make a node_modules folder by default - is that necessary for this this type to be found, or can the import mapping work?