@@ -70,18 +70,18 @@ Next, you need to import the library:
70
70
- first, in your support file (located by default in ` cypress/support/index.js ` ):
71
71
``` ts
72
72
// typescript / ES6
73
- import ' @frsource/cypress-plugin-visual-regression-diff/dist/support ' ;
73
+ import ' @frsource/cypress-plugin-visual-regression-diff' ;
74
74
75
75
// javascript
76
- require (' @frsource/cypress-plugin-visual-regression-diff/dist/support ' );
76
+ require (' @frsource/cypress-plugin-visual-regression-diff' );
77
77
```
78
78
79
79
- secondly:
80
80
- (for Cypress 10.0+) in ` cypress.config.js ` (or ` cypress.config.ts ` ):
81
81
``` ts
82
82
// typescript / ES6
83
83
import { defineConfig } from ' cypress' ;
84
- import { initPlugin } from ' @frsource/cypress-plugin-visual-regression-diff/dist/ plugins' ;
84
+ import { initPlugin } from ' @frsource/cypress-plugin-visual-regression-diff/plugins' ;
85
85
86
86
export default defineConfig ({
87
87
// setupNodeEvents can be defined in either
@@ -96,7 +96,7 @@ export default defineConfig({
96
96
- (for Cypress <10.0) in your plugins file (located by default in ` cypress/plugins/index.js ` ):
97
97
``` ts
98
98
// typescript / ES6
99
- import { initPlugin } from ' @frsource/cypress-plugin-visual-regression-diff/dist/ plugins' ;
99
+ import { initPlugin } from ' @frsource/cypress-plugin-visual-regression-diff/plugins' ;
100
100
101
101
export default function (on : Cypress .PluginEvents , config : Cypress .PluginConfigOptions ) {
102
102
initPlugin (on , config );
@@ -105,7 +105,7 @@ export default function (on: Cypress.PluginEvents, config: Cypress.PluginConfigO
105
105
};
106
106
107
107
// javascript
108
- const { initPlugin } = require (' @frsource/cypress-plugin-visual-regression-diff/dist/ plugins' );
108
+ const { initPlugin } = require (' @frsource/cypress-plugin-visual-regression-diff/plugins' );
109
109
110
110
module .exports = function (on , config ) {
111
111
initPlugin (on , config );
0 commit comments