import fs from 'node:fs'; import path from 'node:path'; export const getFilePaths = (dirPath: string): Array => { let filePaths: Array = []; const files = fs.readdirSync(dirPath); for (const file of files) { const filePath = path.join(dirPath, file); const stat = fs.statSync(filePath); if (stat.isDirectory()) { filePaths = filePaths.concat(getFilePaths(filePath)); } else { filePaths.push(filePath); } } return filePaths; }; export const getSpecsPath = (): string => path.join(__dirname, '..', '..', 'specs');