We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Curious if anyone has looked into testing CSS variable props. This doesn't work (even with viteConfig.test.css set to true):
viteConfig.test.css
true
test(`CSS variables are applied`, () => { new Component({ target: document.body, props: { '--custom-bg-color': `green`, }, }) const div = document.querySelector(`.some-class`) expect(getComputedStyle(div).backgroundColor).toBe(`green`) })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Curious if anyone has looked into testing CSS variable props. This doesn't work (even with
viteConfig.test.css
set totrue
):The text was updated successfully, but these errors were encountered: