next.js/test/e2e/app-dir/metadata-json-manifest/index.test.ts
index.test.ts25 lines609 B
import { nextTestSetup } from 'e2e-utils'

describe('app-dir metadata-json-manifest', () => {
  const { next, skipped } = nextTestSetup({
    files: __dirname,
    skipDeployment: true,
  })

  if (skipped) {
    return
  }

  it('should support metadata.json manifest', async () => {
    const response = await next.fetch('/manifest.json')
    expect(response.status).toBe(200)
    const json = await response.json()
    expect(json).toEqual({
      name: 'My Next.js Application',
      short_name: 'Next.js App',
      description: 'An application built with Next.js',
      start_url: '/',
    })
  })
})
Quest for Codev2.0.0
/
SIGN IN