[WIP] Setup vitest and nuxt for test suite #136
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 😁