File size: 489 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { defineConfig } from 'cypress'
import { addMatchImageSnapshotPlugin } from '@simonsmith/cypress-image-snapshot/plugin'

export default defineConfig({
  e2e: {
    baseUrl: 'http://localhost:3000',
    video: false,
    scrollBehavior: false,
    fixturesFolder: false,
    screenshotOnRunFailure: false,
    excludeSpecPattern: ['**/__snapshots__/*'],
    viewportHeight: 600,
    viewportWidth: 1200,
    setupNodeEvents(on) {
      addMatchImageSnapshotPlugin(on)
    },
  },
})