Skip to content

Commit

Permalink
Install replay plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster committed Jan 4, 2023
1 parent a4779fc commit c7843d6
Show file tree
Hide file tree
Showing 4 changed files with 434 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const cypressReplay = require('@replayio/cypress')

// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
Expand All @@ -14,4 +16,6 @@
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
cypressReplay.default(on, config)
return config
}
2 changes: 2 additions & 0 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')

require('@replayio/cypress/support')
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@babel/preset-react": "^7.8.3",
"@replayio/cypress": "^0.4.6",
"@testing-library/react": "^10.0.2",
"cypress": "^4.3.0",
"husky": "^4.2.1",
Expand Down

0 comments on commit c7843d6

Please sign in to comment.