Skip to content

Commit

Permalink
chore: add subdirs.test.js that requires in subdirectories
Browse files Browse the repository at this point in the history
Re: #8322
  • Loading branch information
vkarpov15 committed Dec 4, 2019
1 parent f06d1c7 commit ae66e46
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions test/mocha.opts
@@ -1,3 +1,2 @@
--reporter dot
--ui bdd
--recursive
--ui bdd
15 changes: 15 additions & 0 deletions test/subdirs.test.js
@@ -0,0 +1,15 @@
'use strict';

const fs = require('fs');

let files = fs.readdirSync(`${__dirname}/docs`);

for (const file of files) {
require(`./docs/${file}`);
}

files = fs.readdirSync(`${__dirname}/helpers`);

for (const file of files) {
require(`./helpers/${file}`);
}

0 comments on commit ae66e46

Please sign in to comment.