next.js/test/production/app-dir/proxy-build-cli-output/proxy-build-cli-output.test.ts
proxy-build-cli-output.test.ts15 lines403 B
import { nextTestSetup } from 'e2e-utils'

describe('proxy-build-cli-output', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should print proxy in the build CLI output', async () => {
    expect(next.cliOutput).toContain('ƒ Proxy (Middleware)')

    const browser = await next.browser('/foo')
    expect(await browser.elementByCss('p').text()).toBe('hello world')
  })
})
Quest for Codev2.0.0
/
SIGN IN