1.7.2 • Published 4 years ago
cypress-plugin-livereload v1.7.2
cypress-plugin-livereload
Reload Cypress tester using livereload
Installation
npm install cypress-plugin-livereload
Usage
Add to your cypress/support/index.js
file
require('cypress-plugin-livereload');
Check a full example here
Options
You can configure the plugin in cypress.json
You only need to include the options that are different than the default value
"livereload": {
"hostname": null,
"https": false,
"port": 35729,
"delay": 0
}
- hostname: (Default: null) leave to null to use the current hostname
- https: (Default: false) if set to true, the wss protocol will be used instead of ws
- port: (Default: 35729) the current port that is used by your livereload server
- delay: (Default: 0 ms) increase if needed
Check a full example here
Details
This plugin listens to your livereload server and reloads Cypress when livereload sends a reload command.
It aims to make TDD and debugging easier using Cypress
License
MIT license