mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
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')
|
|
})
|
|
})
|