From 3299080380c3dcf2778af0075d9146b0cdb40982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rge=20N=C3=A6ss?= Date: Fri, 20 Sep 2024 16:19:40 +0200 Subject: [PATCH] await monorepo aliases --- .../_internal/cli/threads/__tests__/validateDocuments.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sanity/src/_internal/cli/threads/__tests__/validateDocuments.test.ts b/packages/sanity/src/_internal/cli/threads/__tests__/validateDocuments.test.ts index 0fdc0ac5764f..b510f019d803 100644 --- a/packages/sanity/src/_internal/cli/threads/__tests__/validateDocuments.test.ts +++ b/packages/sanity/src/_internal/cli/threads/__tests__/validateDocuments.test.ts @@ -204,7 +204,7 @@ describe('validateDocuments', () => { const moduleAlias = require('module-alias') const { register } = require('esbuild-register/dist/node') - moduleAlias.addAliases(${JSON.stringify(getMonorepoAliases(path.resolve(__dirname, '../../../../../../..')))}) + moduleAlias.addAliases(${JSON.stringify(await getMonorepoAliases(path.resolve(__dirname, '../../../../../../..')))}) const { unregister } = register({ target: 'node18',