npm install cypress -D
Add tests in FILENAME.js files in /tests/e2e/specs
.
npm run serve
npx cypress run
npm run serve
npx cypress open
Accidentally committing an instance of .only()
and thus running only one single test instead of your whole test suite is a really bothersome mistake that is easy to make.
This is why it is definitely worth it to install a plugin that designates any .only()
a linting error: eslint-plugin-no-only-tests
npm install --save-dev eslint-plugin-no-only-tests
"plugins": [
"no-only-tests"
]
"rules": {
"no-only-tests/no-only-tests": "error"
}