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.
Deprecate externalCss option
· One min read