mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
fix(test-utils): override NITRO_PORT
as well (#8458)
This commit is contained in:
parent
1683396633
commit
452766e90e
@ -21,6 +21,7 @@ export async function startServer () {
|
|||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
PORT: String(port),
|
PORT: String(port),
|
||||||
|
NITRO_PORT: String(port),
|
||||||
NODE_ENV: 'development'
|
NODE_ENV: 'development'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -43,6 +44,7 @@ export async function startServer () {
|
|||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
PORT: String(port),
|
PORT: String(port),
|
||||||
|
NITRO_PORT: String(port),
|
||||||
NODE_ENV: 'test'
|
NODE_ENV: 'test'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user