How do I solve " Failed to resolve import "$app/paths" with Svelte and Vitest

I have been working on Svelte library, and I just started configuring and writing unit tests for it. Vitest was set up and configured, but when running tests I Was getting an error like this: FAIL src/tests/my-class.spec.ts [ src/tests/my-class.spec.ts ] Error: Failed to resolve import "$app/paths" from "src/lib/my-class.ts". Does the file exist? Plugin: vite:import-analysis File:…