fix(test-utils): override NITRO_PORT as well (#8458)

This commit is contained in:
Daniel Roe 2022-10-25 11:17:24 +02:00 committed by GitHub
parent 1683396633
commit 452766e90e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ export async function startServer () {
env: {
...process.env,
PORT: String(port),
NITRO_PORT: String(port),
NODE_ENV: 'development'
}
})
@ -43,6 +44,7 @@ export async function startServer () {
env: {
...process.env,
PORT: String(port),
NITRO_PORT: String(port),
NODE_ENV: 'test'
}
})