next.js/test/e2e/app-dir/next-config-ts/node-api-cjs/next-config-ts-node-api-cjs.test.ts
next-config-ts-node-api-cjs.test.ts13 lines300 B
import { nextTestSetup } from 'e2e-utils'

describe('next-config-ts-node-api-cjs', () => {
  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')
  })
})
Quest for Codev2.0.0
/
SIGN IN