Skip to content

Commit

Permalink
tweak import-conditions test (#67116)
Browse files Browse the repository at this point in the history
This test was failing when deployed with _"Unsupported URL Type
"link:"._

This tweaks the linking behavior when deployed. I wasn't able to get
this test to pass when changing both `start` and deploy to use `link`.
  • Loading branch information
ztanner authored Jun 22, 2024
1 parent 891ca7a commit d3edfe1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/e2e/import-conditions/import-conditions.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import { nextTestSetup } from 'e2e-utils'

describe('react version', () => {
const dependencies = (global as any).isNextDeploy
? // `link` is incompatible with the npm version used when this test is deployed
{
'library-with-exports': 'file:./library-with-exports',
}
: {
'library-with-exports': 'link:./library-with-exports',
}

const { next } = nextTestSetup({
files: __dirname,
dependencies: {
'library-with-exports': 'link:./library-with-exports',
},
dependencies,
})

it('Pages Router page headers with edge runtime', async () => {
Expand Down

0 comments on commit d3edfe1

Please sign in to comment.