tweak import-conditions test (#67116)

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`.
This commit is contained in:
Zack Tanner 2024-06-22 20:28:11 +02:00 committed by GitHub
parent 891ca7a054
commit d3edfe1763
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 () => {