import { nextTestSetup } from 'e2e-utils' describe('next-config-ts-node-api-cjs', () => { // TODO: Remove this once we bump minimum Node.js version to v22 if (!(process.features as any).typescript) { it.skip('requires `process.features.typescript` to feature detect Node.js native TS', () => {}) return } const { next } = nextTestSetup({ files: __dirname, }) it('should be able to use Node.js API (CJS)', async () => { const $ = await next.render$('/') expect($('p').text()).toBe('foo') }) })