Skip to content

Commit

Permalink
Convert test--packages.js to .ts (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Feb 25, 2020
1 parent 9b95efc commit 4ba78dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test--packages.ts
Expand Up @@ -11,8 +11,8 @@ const getTestFiles = (dir: string, startDir: string = dir): string[] => {
let filelist: string[] = [];
const files = readdirSync(dir);

files.forEach((file) => {
if (isDirectory(dir + file)) {
files.forEach((file: string) => {
if (isDirectory(`${dir}${file}`)) {
filelist = [...filelist, ...getTestFiles(`${dir}${file}/`, startDir)];
return;
}
Expand All @@ -30,7 +30,7 @@ const getTestFiles = (dir: string, startDir: string = dir): string[] => {

const getPackages = (): string[] => {
const packagesFolder: string = resolve('packages');
return readdirSync(packagesFolder).map((filename) => resolve(packagesFolder, filename)).filter(isDirectory);
return readdirSync(packagesFolder).map((filename: string) => resolve(packagesFolder, filename)).filter(isDirectory);
};

const describePackage = (packagePath: string): void => {
Expand Down

0 comments on commit 4ba78dc

Please sign in to comment.