refactor: refs #6889 improve file loading logic
This commit is contained in:
parent
8212eb82c7
commit
8a54f7c5c7
|
@ -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: '.',
|
||||
|
|
Loading…
Reference in New Issue