test: fix async loop

This commit is contained in:
Nicolas Meienberger 2025-04-26 15:54:29 +02:00
parent 75d9286195
commit ccc939cd99
2 changed files with 3 additions and 3 deletions

View file

@ -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()
})