test: fix async loop
This commit is contained in:
parent
75d9286195
commit
ccc939cd99
2 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue