File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,22 @@ require('@frsource/cypress-plugin-visual-regression-diff/dist/support');
69
69
- seconds time, in your plugins file (located by default in ` cypress/plugins/index.js ` ):
70
70
``` ts
71
71
// typescript
72
- import ' @frsource/cypress-plugin-visual-regression-diff/src/plugins' ;
72
+ import { initPlugin } from ' @frsource/cypress-plugin-visual-regression-diff/src/plugins' ;
73
+
74
+ export default function (on : Cypress .PluginEvents , config : Cypress .PluginConfigOptions ) {
75
+ initPlugin (on , config );
76
+
77
+ return config ;
78
+ };
73
79
74
80
// javascript
75
- require (' @frsource/cypress-plugin-visual-regression-diff/dist/plugins' );
81
+ const { initPlugin } = require (' @frsource/cypress-plugin-visual-regression-diff/dist/plugins' );
82
+
83
+ module .exports = function (on , config ) {
84
+ initPlugin (on , config );
85
+
86
+ return config ;
87
+ }
76
88
```
77
89
78
90
That's it - now let's see how to use the library in [ usage section] ( #usage ) .
You can’t perform that action at this time.
0 commit comments