Skip to content

[WIP] Setup vitest and nuxt for test suite #136

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bhousel
Copy link
Collaborator

@bhousel bhousel commented May 23, 2025

re: #100
I attempted to get a basic component test working, following the Nuxt guide here. However, the full nuxt environment ends up pulling in middleware plugins from tlv2_ui, and when the component loads, it is blocked on the auth middleware.

The actual test is queued but will not run, awaiting a promise.

✔ Nuxt Nitro server built                                                                                      
Σ Total size: 1.63 MB (394 kB gzip)
✔ You can preview this build using node .nuxt/test/f0af4y/output/server/index.mjs                              nitro 4:35:54 PM
ℹ Running tests...                                                                                                   4:35:54 PM
stdout | tests/components/legend.test.ts                                                                              4:35:55 PM
checkToken: not logged in
                                                                                                                      4:35:55 PM
stdout | tests/components/legend.test.ts                                                                              4:35:55 PM
auth mw: force login
                                                                                                                      4:35:55 PM
 ❯ tests/components/legend.test.ts [queued]

ping @irees 😁

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

Successfully merging this pull request may close these issues.

1 participant