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
|
* Reset the changes made to tsconfig.json
|
||||||
*/
|
*/
|
||||||
afterTest: async () => {
|
afterTest: async () => {
|
||||||
// Revert the changes made to tsconfig.json
|
// Set original value of '@payload-config' back to default of _community
|
||||||
tsConfig.compilerOptions.paths['@payload-config'] = originalPayloadConfigTsValue
|
tsConfig.compilerOptions.paths['@payload-config'] = ['./test/_community/config.ts']
|
||||||
|
|
||||||
await writeFile(tsConfigPath, JSON.stringify(tsConfig, null, 2) + '\n')
|
await writeFile(tsConfigPath, JSON.stringify(tsConfig, null, 2) + '\n')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@payload-config": [
|
"@payload-config": [
|
||||||
"./test/auth/config.ts"
|
"./test/_community/config.ts"
|
||||||
],
|
],
|
||||||
"@payloadcms/ui/assets": [
|
"@payloadcms/ui/assets": [
|
||||||
"./packages/ui/src/assets/index.ts"
|
"./packages/ui/src/assets/index.ts"
|
||||||
@@ -154,4 +154,4 @@
|
|||||||
".next/types/**/*.ts",
|
".next/types/**/*.ts",
|
||||||
"scripts/**/*.ts"
|
"scripts/**/*.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user