chore: ensure node deprecation warnings stay hidden during e2e test runs
This commit is contained in:
@@ -62,7 +62,7 @@ export async function initPayloadE2ENoConfig<T extends GeneratedTypes<T>>({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
process.env.NODE_OPTIONS = '--max-old-space-size=8192'
|
process.env.NODE_OPTIONS = '--max-old-space-size=8192 --no-deprecation'
|
||||||
|
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
const app = nextImport({
|
const app = nextImport({
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
import { defineConfig } from '@playwright/test'
|
import { defineConfig } from '@playwright/test'
|
||||||
|
import dotenv from 'dotenv'
|
||||||
|
import path from 'path'
|
||||||
|
import { fileURLToPath } from 'url'
|
||||||
|
|
||||||
|
const filename = fileURLToPath(import.meta.url)
|
||||||
|
const dirname = path.dirname(filename)
|
||||||
|
|
||||||
|
dotenv.config({ path: path.resolve(dirname, 'test.env') })
|
||||||
|
|
||||||
export const EXPECT_TIMEOUT = 45000
|
export const EXPECT_TIMEOUT = 45000
|
||||||
export const POLL_TOPASS_TIMEOUT = EXPECT_TIMEOUT * 4 // That way expect.poll() or expect().toPass can retry 4 times. 4x higher than default expect timeout => can retry 4 times if retryable expects are used inside
|
export const POLL_TOPASS_TIMEOUT = EXPECT_TIMEOUT * 4 // That way expect.poll() or expect().toPass can retry 4 times. 4x higher than default expect timeout => can retry 4 times if retryable expects are used inside
|
||||||
|
|||||||
1
test/test.env
Normal file
1
test/test.env
Normal file
@@ -0,0 +1 @@
|
|||||||
|
NODE_OPTIONS="--no-deprecation"
|
||||||
Reference in New Issue
Block a user