test: force @payload-config back to _community

This commit is contained in:
Elliot DeNolf
2024-03-21 11:29:40 -04:00
parent 46be6e37dc
commit c2af3df331
2 changed files with 4 additions and 4 deletions

View File

@@ -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')
},

View File

@@ -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"
]
}
}