-
Notifications
You must be signed in to change notification settings - Fork 1
/
run-config.js
39 lines (33 loc) · 1.42 KB
/
run-config.js
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
33
34
35
36
37
38
39
const cypress = require('cypress')
async function runConfigTests(framework, importType, isCharts, excludeTests) {
console.log(`Running config tests for ${framework} -> ${importType}`);
return await cypress.run({
browser: 'chrome',
headless: true,
spec: './cypress/integration/ag-grid/validate-config.spec.js',
reporterOptions: `mochaFile=test-results/config_${isCharts ? 'charts_' : ''}${framework}_${importType}.xml`,
env: {
framework,
importType,
isCharts,
excludeTests,
},
})
}
; (async () => {
// until this is fixed
const skipPackages = [{importType: 'packages'}];
await runConfigTests('vanilla', 'modules', false, [
{ page: 'component-cell-renderer', example: 'dynamic-components' },
{ page: 'component-filter', example: 'filter-component' },
{ page: 'component-floating-filter', example: 'floating-filter-component' },
{ page: 'rxjs' },
...skipPackages
]);
await runConfigTests('typescript', 'modules', false, skipPackages);
await runConfigTests('angular', 'modules', false, skipPackages);
await runConfigTests('reactFunctional', 'modules', false, skipPackages);
await runConfigTests('vue', 'modules', false, skipPackages);
await runConfigTests('vue3', 'modules', false, skipPackages);
//await runConfigTests('typescript', 'packages', false, []);
})()