chore: remove deprecation warnings for int & e2e tests

This commit is contained in:
Alessio Gravili
2024-03-11 17:03:50 -04:00
parent dbbbb6b921
commit 626b6500de

View File

@@ -16,6 +16,7 @@ type Result = {
export async function initPayloadE2E({ dirname }: Args): Promise<Result> { export async function initPayloadE2E({ dirname }: Args): Promise<Result> {
const port = await getPort() const port = await getPort()
const serverURL = `http://localhost:${port}` const serverURL = `http://localhost:${port}`
process.env.NODE_OPTIONS = '--no-deprecation'
process.env.PAYLOAD_CONFIG_PATH = path.resolve(dirname, './config.js') process.env.PAYLOAD_CONFIG_PATH = path.resolve(dirname, './config.js')
process.env.PAYLOAD_DROP_DATABASE = 'true' process.env.PAYLOAD_DROP_DATABASE = 'true'
process.env.PORT = String(port) process.env.PORT = String(port)