mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
I've simplified @timneutkens's tests from #66486 The resolver fix is in https://github.com/vercel/turbo/pull/8820 Closes https://github.com/vercel/next.js/pull/66486 Related issue: https://github.com/vercel/next.js/issues/66487 --------- Co-authored-by: Tim Neutkens <[email protected]>
20 lines
619 B
TypeScript
20 lines
619 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
import path from 'path'
|
|
|
|
describe('self-importing-package', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
// This test is skipped when deployed because the local tarball appears corrupted
|
|
// It also doesn't seem particularly useful to test when deployed
|
|
skipDeployment: true,
|
|
dependencies: {
|
|
'internal-pkg': `file:${path.join(__dirname, 'internal-pkg.tar')}`,
|
|
},
|
|
})
|
|
|
|
it('should resolve self-imports in an external package', async () => {
|
|
const $ = await next.render$('/')
|
|
expect($('h1').text()).toBe('test abc')
|
|
})
|
|
})
|