Skip to content

Latest commit

 

History

History
 
 

sass-and-ts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

example-sass-and-ts

Testing components written in TypeScript with Sass imports

Sass test

Usage

  1. Make sure the root project has been built .
# in the root of the project
npm install
npm run build
  1. Run npm install in this folder to symlink the @cypress/react dependency.
# in this folder
npm install
  1. Start Cypress
npm run cy:open
# or just run headless tests
npm test

Notes

Notice that Node Sass is a binary dependency, thus we need to run it using the same system version of Node as we installed. See cypress.json file.

{
  "nodeVersion": "system"
}

To bundle code using the same webpack.config.js file, we point at it from cypress/plugins/index.js file.