Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vitest: Failed to resolve import "#nuxt/mongoose" from "server/models/user.schema.ts". Does the file exist? #61

Open
Giorno-Giovana opened this issue Jul 12, 2024 · 0 comments

Comments

@Giorno-Giovana
Copy link

Giorno-Giovana commented Jul 12, 2024

I've tried to write some tests with vitest and nuxt-test-utils, but caught an error: Failed to resolve import "#nuxt/mongoose" from "server/models/user.schema.ts". Does the file exist?.

Here is a reproduction, based on nuxt-mongoose-minimal: https://github.com/Giorno-Giovana/nuxt-mongoose-minimal. Just run pnpm install && pnpm test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant