Jest preset overide #21846
Labels
outdated
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
type: bug
Current Behavior
I'm facing a lot of issues concerning Jest when it tries to parse CSS. This is what I have:
Error: Could not parse CSS stylesheet.
After spending a lot of time digging into what's happening, I found that people suggest modifying the virtual console to skip the error. https://stackoverflow.com/questions/69906136/console-error-error-could-not-parse-css-stylesheet
First attempt:
I failed.
Then I've found a solution to replace the jsDom by @happy-dom/jest-environment (thymikee/jest-preset-angular#2194)
It works! I don't have any messages concerning "cannot parse any CSS stuff" anymore. But is this the right way to fix it?
Expected Behavior
Keep the jsDom in place as NX does and silent the virtualConsole error.
GitHub Repo
No response
Steps to Reproduce
1.you can for 'e.g' install primeng for as ui library
2. then follow the install guide by import their theme
3. develop a dummy page with one component then test
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: