Unverified Commit d3edfe17 authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

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`.
parent 891ca7a0
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 () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment