test: force @payload-config back to _community
This commit is contained in:
@@ -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')
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user