14 lines
396 B
JavaScript
14 lines
396 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].toLowerCase() + CYPRESS_SUFIX,
|
|
);
|
|
}
|
|
}
|
|
return modules;
|
|
}
|