import { nextTestSetup } from 'e2e-utils' describe('next-config-ts-async-function-cjs', () => { const { next } = nextTestSetup({ files: __dirname, }) it('should support config as async function (CJS)', async () => { const $ = await next.render$('/') expect($('p').text()).toBe('foo') }) })