From c2af3df331ff9a42e9bfafaca08491abe61c6c06 Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Thu, 21 Mar 2024 11:29:40 -0400 Subject: [PATCH] test: force @payload-config back to _community --- test/testHooks.js | 4 ++-- tsconfig.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/testHooks.js b/test/testHooks.js index 1629bcf70..fc8c6ae4c 100644 --- a/test/testHooks.js +++ b/test/testHooks.js @@ -35,8 +35,8 @@ export const createTestHooks = async (testSuiteName = '_community') => { * Reset the changes made to tsconfig.json */ afterTest: async () => { - // Revert the changes made to tsconfig.json - tsConfig.compilerOptions.paths['@payload-config'] = originalPayloadConfigTsValue + // Set original value of '@payload-config' back to default of _community + tsConfig.compilerOptions.paths['@payload-config'] = ['./test/_community/config.ts'] await writeFile(tsConfigPath, JSON.stringify(tsConfig, null, 2) + '\n') }, diff --git a/tsconfig.json b/tsconfig.json index bbb0643e4..6ea0e2c75 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -37,7 +37,7 @@ ], "paths": { "@payload-config": [ - "./test/auth/config.ts" + "./test/_community/config.ts" ], "@payloadcms/ui/assets": [ "./packages/ui/src/assets/index.ts" @@ -154,4 +154,4 @@ ".next/types/**/*.ts", "scripts/**/*.ts" ] -} \ No newline at end of file +}