Cypress is a testing tool, can test anything that runs in a browser.
- End-to-end tests
- Integration tests
- Unit tests
- Set up tests
- Write tests
- Run tests
- Debug tests
$ cd /your/product/path
$ yarn add cypress --dev
-
Create a
sample_spec.js
file in thecypress/integration
folder. -
Write tests
describe('My First Test', function() {
it('Does not do much!', function() {
expect(true).to.equal(true)
})
})
yarn cypress open
Same with chrome.