chore: fix dev:postgres command, disable dependency checker in core dev (#7733)

This commit is contained in:
Alessio Gravili
2024-08-16 15:46:49 -04:00
committed by GitHub
parent bd51fd1390
commit 4808e31276
7 changed files with 20 additions and 8 deletions

View File

@@ -32,6 +32,8 @@ export async function initPayloadE2E({ dirname }: Args): Promise<Result> {
const port = 3000
process.env.PORT = String(port)
process.env.PAYLOAD_DISABLE_DEPENDENCY_CHECKER = 'true'
const serverURL = `http://localhost:${port}`
// @ts-expect-error
@@ -53,7 +55,7 @@ export async function initPayloadE2E({ dirname }: Args): Promise<Result> {
// which seeds test data twice + other bad things.
// We initialize Payload above so we can have access to it in the tests
void app.prepare().then(() => {
createServer(async (req, res) => {
createServer((req, res) => {
const parsedUrl = parse(req.url, true)
await handle(req, res, parsedUrl)
}).listen(port, () => {

View File

@@ -39,6 +39,8 @@ export async function initPayloadE2ENoConfig<T extends GeneratedTypes<T>>({
const port = 3000
process.env.PORT = String(port)
process.env.PAYLOAD_DISABLE_DEPENDENCY_CHECKER = 'true'
const serverURL = `http://localhost:${port}`
await startMemoryDB()

View File

@@ -8,6 +8,7 @@ process.env.PAYLOAD_DROP_DATABASE = 'true'
process.env.PAYLOAD_PUBLIC_CLOUD_STORAGE_ADAPTER = 's3'
process.env.NODE_OPTIONS = '--no-deprecation'
process.env.PAYLOAD_DISABLE_DEPENDENCY_CHECKER = 'true'
const databaseAdapters = {
mongodb: `