Skip to content

Commit

Permalink
fix(test-utils): override NITRO_PORT as well (nuxt#8458)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Oct 25, 2022
1 parent 1683396 commit 452766e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/test-utils/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export async function startServer () {
env: {
...process.env,
PORT: String(port),
NITRO_PORT: String(port),
NODE_ENV: 'development'
}
})
Expand All @@ -43,6 +44,7 @@ export async function startServer () {
env: {
...process.env,
PORT: String(port),
NITRO_PORT: String(port),
NODE_ENV: 'test'
}
})
Expand Down

0 comments on commit 452766e

Please sign in to comment.