mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
If an ESM module only includes a `'use client'` directive and no exports, which is the case for one of the modules that are included in `@chakra-ui/system` for example, we must not try to add `registerClientReference` statements for this module. This is a regression from #71968. fixes #72358 closes #72359
13 lines
301 B
TypeScript
13 lines
301 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('esm-client-module-without-exports', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should render without errors', async () => {
|
|
const html = await next.render('/')
|
|
expect(html).toContain('hello world')
|
|
})
|
|
})
|