Skip to content

Commit f7f0fd1

Browse files
committed
feat: update file path comment
1 parent 4b16eec commit f7f0fd1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/Cypress integration.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Then initialise cypress if you don't have a project:
1919

2020
## Cypress plugin
2121

22-
import and initialise the cypress image diff plugin in `cypress/plugin/index.js`:
22+
import and initialise the cypress image diff plugin:
2323

2424
```
25+
// cypress/plugin/index.js
2526
module.exports = (on, config) => {
2627
const getCompareSnapshotsPlugin = require('cypress-image-diff-js/dist/plugin')
2728
getCompareSnapshotsPlugin(on, config)
@@ -30,15 +31,17 @@ module.exports = (on, config) => {
3031

3132
## Cypress support
3233

33-
import and add cypress image command in `cypress/support/commands.js`:
34+
import and add cypress image command:
3435

3536
```
37+
// cypress/support/commands.js
3638
const compareSnapshotCommand = require('cypress-image-diff-js/dist/command')
3739
compareSnapshotCommand()
3840
```
3941

40-
ensure to require the commands folder in `cypress/support/index.js`:
42+
ensure to require the commands file:
4143

4244
```
45+
// cypress/support/index.js
4346
require('./commands')
4447
```

0 commit comments

Comments
 (0)