Skip to content

Commit

Permalink
Add watch and reload package
Browse files Browse the repository at this point in the history
  • Loading branch information
bwreid committed Sep 21, 2021
1 parent bd51d13 commit b525912
Show file tree
Hide file tree
Showing 5 changed files with 336 additions and 9 deletions.
6 changes: 5 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{}
{
"cypress-watch-and-reload": {
"watch": ["index.html", "main.js", "style.css"]
}
}
5 changes: 2 additions & 3 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
* @type {Cypress.PluginConfig}
*/
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}
require("cypress-watch-and-reload/plugins")(config);
};
5 changes: 2 additions & 3 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'
import "./commands";

// Alternatively you can use CommonJS syntax:
// require('./commands')
require("cypress-watch-and-reload/support");
Loading

0 comments on commit b525912

Please sign in to comment.