Skip to content

Commit c7843d6

Browse files
committed
Install replay plugin
1 parent a4779fc commit c7843d6

File tree

4 files changed

+434
-2
lines changed

4 files changed

+434
-2
lines changed

cypress/plugins/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const cypressReplay = require('@replayio/cypress')
2+
13
// ***********************************************************
24
// This example plugins/index.js can be used to load plugins
35
//
@@ -14,4 +16,6 @@
1416
module.exports = (on, config) => {
1517
// `on` is used to hook into various events Cypress emits
1618
// `config` is the resolved Cypress config
19+
cypressReplay.default(on, config)
20+
return config
1721
}

cypress/support/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ import './commands'
1818

1919
// Alternatively you can use CommonJS syntax:
2020
// require('./commands')
21+
22+
require('@replayio/cypress/support')

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@babel/core": "^7.8.4",
2121
"@babel/preset-env": "^7.8.4",
2222
"@babel/preset-react": "^7.8.3",
23+
"@replayio/cypress": "^0.4.6",
2324
"@testing-library/react": "^10.0.2",
2425
"cypress": "^4.3.0",
2526
"husky": "^4.2.1",

0 commit comments

Comments
 (0)