refactor: refs #6889 improve file loading logic

This commit is contained in:
Jorge Penadés 2024-05-30 14:34:27 +02:00
parent 8212eb82c7
commit 8a54f7c5c7
1 changed files with 5 additions and 2 deletions

View File

@ -37,8 +37,11 @@ async function test() {
const jasmine = new Jasmine();
const e2ePath = './e2e/paths';
const specFiles = fs.readdirSync(e2ePath).sort().map(folder => `${e2ePath}/${folder}/*[sS]pec.js`);
specFiles.push(`${e2ePath}/**/*[sS]pec.js`);
const file = '*[sS]pec.js';
const specFiles = fs.readdirSync(e2ePath)
.sort()
.map(folder => `${e2ePath}/${folder}/${file}`)
.concat(`${e2ePath}/**/${file}`);
jasmine.loadConfig({
spec_dir: '.',