forked from highcharts/highcharts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcypress.config.mjs
32 lines (28 loc) · 864 Bytes
/
cypress.config.mjs
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
28
29
30
31
32
import { defineConfig } from 'cypress';
import { getProducts } from './tools/gulptasks/lib/test.js';
const products = new Set();
for (const product of getProducts()) {
switch (product) {
case 'Dashboards':
products.add('dashboards');
products.add('data-grid');
continue;
default:
products.add('highcharts');
continue;
}
}
const productsPattern = (
products.length ?
`{${Array.from(products).join(',')}}` :
'**'
);
export default defineConfig({
fixturesFolder: 'test/cypress/fixtures',
e2e: {
baseUrl: 'http://localhost:3030/samples/view?mobile=true&path=/',
specPattern: `test/cypress/${productsPattern}/integration/*.cy.{js,jsx,ts,tsx}`,
supportFile: 'test/cypress/support/index.js',
testIsolation: false
}
});