- ⚙️ Install the node version listed in
.nvmrc
(we recommend using nvm). - 😸 Install yarn (with
npm i -g yarn
) - 🧶 Install the project's dependencies (with just
yarn
) - 🌲 Run Cypress (with
yarn test:cy
) - 📝 Write tests
-
We almost exclusively use
cypress-testing-library
to write our assertions. You're welcome to use them or not. -
At Air, we try to avoid to duplicate coverage; however, we can't provide you the function we use to forcibly authenticate and avoid the login or registration process for inner-app tests. Unfortunately, that means you'll want to login or register before you can make in-app assertions.
-
We use real data in our integration tests, but you're welcome to use fixtures if that's what you're used to!