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:
parent
891ca7a054
commit
d3edfe1763
1 changed files with 10 additions and 3 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue