Skip to content

Unable to perform simple tests with CSD components? #1692

Answered by just-boris
fltzr asked this question in Q&A
Discussion options

You must be logged in to vote

I think the issue is in this line https://github.com/fltzr/vitest-cloudscape-unit-test/blob/4d50a484c4d1542e445634c72cdeb0db96975628/vite.config.ts#L14

css: true option can't be used in vitest with our components. Can you try turning it off and test again?

For additional context, this is sort of a known issue: dperini/nwsapi#92

This module is used in JSDOM, which runs tests in your demo

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fltzr
Comment options

Answer selected by just-boris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants