diff --git a/README.md b/README.md index 3816a58..41d64e0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This repository serves as a template for creating your own custom app store for - `description.md`: Markdown description of the app - `logo.jpg`: App logo image -- ****tests**/**: Contains test files for the app store +- **tests/**: Contains test files for the app store - `apps.test.ts`: Test suite for validating apps diff --git a/__tests__/apps.test.ts b/__tests__/apps.test.ts index ac609f3..4fd30c9 100644 --- a/__tests__/apps.test.ts +++ b/__tests__/apps.test.ts @@ -7,8 +7,8 @@ import path from 'node:path' const getApps = async () => { const appsDir = await fs.promises.readdir(path.join(process.cwd(), 'apps')) - const appDirs = appsDir.filter(async (app) => { - const stat = await fs.promises.stat(path.join(process.cwd(), 'apps', app)) + const appDirs = appsDir.filter((app) => { + const stat = fs.statSync(path.join(process.cwd(), 'apps', app)) return stat.isDirectory() })