next.js/test/e2e/app-dir/middleware-sitemap/no-matcher/index.test.ts
index.test.ts16 lines413 B
import { nextTestSetup } from 'e2e-utils'

describe('middleware-sitemap', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should be affected by middleware for sitemap.xml if there is no matcher', async () => {
    let html = await next.render('/')
    expect(html).toContain('redirected')

    html = await next.render('/sitemap.xml')
    expect(html).toContain('redirected')
  })
})
Quest for Codev2.0.0
/
SIGN IN