12 lines
351 B
JavaScript
12 lines
351 B
JavaScript
export function getModules(files) {
|
|
const CYPRESS_PREFIX = 'test/cypress/integration/';
|
|
const CYPRESS_SUFIX = '/**/*.spec.js';
|
|
const modules = [];
|
|
for (const file of files) {
|
|
if (file.startsWith('src/page')) {
|
|
modules.push(CYPRESS_PREFIX + file.split('/')[2] + CYPRESS_SUFIX);
|
|
}
|
|
}
|
|
return modules;
|
|
}
|