Setup Global CSS Properties for Cypress Component Tests

InstructorFilip Hric

Share this video with your friends

Send Tweet

Importing styles is going to be essential for all of our components to render properly. We will do this similarly as we do in our application - at top level. component.ts file is the proper file for this, as this is the one that gets loaded before running our specs. Importing our index.css file here will make all of our components render with the correct styles.