Files
cypress/npm/react/cypress/component/basic/styles
Jessica Sachs 02575ff987 chore: swapping react to use rollup (#15031)
* wip react to rollup

* remove comment

* chore: update build script

* we were tree shaking the support file hooks

* updating the scripts for reacts package.json

* Revert "updating the scripts for reacts package.json"

This reverts commit 7ca3ac8e61.

* adding watch task without modifying circleci

* bundle types correctly

* bundle types correctly 2

* fixing support to immediately invoke the new method on hooks

* run the hooks only in support

* Revert "run the hooks only in support"

This reverts commit 939e4c5942.

* fix: remove hooks from support entirely

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-02-11 17:59:59 -06:00
..

With @cypress/react, you can add styles to your component in three ways:

mount(<Component />, {
  style: `CSS styles`,
  stylesheets: '/path/to/component.css',
  cssFile: '/path/to/css/file'
})

See examples: css-file, style, stylesheets