-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcypress.config.cjs
More file actions
27 lines (26 loc) · 831 Bytes
/
cypress.config.cjs
File metadata and controls
27 lines (26 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const { defineConfig } = require('cypress');
const glob = require('glob');
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
on('task', {
findFiles({ pattern }) {
// Use glob.sync to get the files synchronously
return glob.sync(pattern, { nodir: true });
}
});
return config;
},
baseUrl: 'http://localhost:8080/exist/apps/jinks',
viewportWidth: 1280,
viewportHeight: 720,
trashAssetsBeforeRuns: true,
includeShadowDom: true,
supportFile: 'test/cypress/support/e2e.js',
specPattern: 'test/cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
screenshotsFolder: 'test/cypress/screenshots',
videosFolder: 'test/cypress/videos',
fixturesFolder: 'test/cypress/fixtures',
downloadsFolder: 'test/cypress/downloads'
},
});