跳到主要内容

1 篇博文 含有标签「css」

查看所有标签

· 阅读需 1 分钟
Hung Viet Nguyen

Previous Jest Preview provides a way to configure external CSS via externalCss option in jestPreviewConfigure function. However, we realized that we can actually import the css DIRECTLY in the setup test file (usually setupFilesAfterEnv in Jest config) instead. This way, we can use the same logic to process external CSS as well as CSS in your components.