import { join } from 'path' import { nextTestSetup } from 'e2e-utils' // This is implemented in Turbopack, but Turbopack doesn't log the module count. ;(process.env.IS_TURBOPACK_TEST ? describe.skip : describe)( 'Skipped in Turbopack', () => { describe('optimizePackageImports - basic', () => { const { next } = nextTestSetup({ env: { NEXT_TEST_MODE: '1', }, files: join(__dirname, 'fixture'), dependencies: { 'lucide-react': '0.264.0', '@headlessui/react': '1.7.17', '@heroicons/react': '2.0.18', '@visx/visx': '3.3.0', 'recursive-barrel': '1.0.0', }, }) it('should handle recursive wildcard exports', async () => { const html = await next.render('/recursive') expect(html).toContain('