Skip to content

Commit

Permalink
Merge pull request #37 from ADejbakhsh/patch-1
Browse files Browse the repository at this point in the history
Activate syntax coloring
  • Loading branch information
PippoRaimondi authored Aug 12, 2021
2 parents f040b0e + d0143f7 commit 6213375
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Cypress integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Then initialise cypress if you don't have a project:

import and initialise the cypress image diff plugin:

```
```js
// cypress/plugin/index.js
module.exports = (on, config) => {
const getCompareSnapshotsPlugin = require('cypress-image-diff-js/dist/plugin')
Expand All @@ -33,15 +33,15 @@ module.exports = (on, config) => {

import and add cypress image command:

```
```js
// cypress/support/commands.js
const compareSnapshotCommand = require('cypress-image-diff-js/dist/command')
compareSnapshotCommand()
```

ensure to require the commands file:

```
```js
// cypress/support/index.js
require('./commands')
```

0 comments on commit 6213375

Please sign in to comment.