Skip to content

Commit

Permalink
use env instead of updating process.env
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Jul 12, 2022
1 parent 182c0bf commit 6c11ec5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/production/edge-runtime-is-addressable/index.test.ts
Expand Up @@ -38,7 +38,6 @@ describe('Edge Runtime is addressable', () => {
let next: NextInstance

beforeAll(async () => {
delete process.env.NEXT_EDGE_RUNTIME_PROVIDER
next = await createNext({
files,
dependencies: {},
Expand Down Expand Up @@ -70,10 +69,12 @@ describe('Edge Runtime can be set to the production provider', () => {
let next: NextInstance

beforeAll(async () => {
process.env.NEXT_EDGE_RUNTIME_PROVIDER = 'vercel'
next = await createNext({
files,
dependencies: {},
env: {
NEXT_EDGE_RUNTIME_PROVIDER: 'vercel',
},
})
})
afterAll(() => next.destroy())
Expand Down

0 comments on commit 6c11ec5

Please sign in to comment.