next.js/test/e2e/chrome-devtools-workspace/chrome-devtools-workspace-custom-disable.test.ts
chrome-devtools-workspace-custom-disable.test.ts17 lines526 B
import * as path from 'path'
import { nextTestSetup } from 'e2e-utils'

describe('chrome-devtools-workspace custom disable', () => {
  const { next } = nextTestSetup({
    files: path.join(__dirname, 'fixtures', 'custom-disable'),
  })

  it('can be disabled by providing your own endpoint', async () => {
    const devtoolsResponse = await next.fetch(
      '/.well-known/appspecific/com.chrome.devtools.json'
    )
    const json = await devtoolsResponse.json()
    expect(json).toEqual('Go away, Chrome DevTools!')
  })
})
Quest for Codev2.0.0
/
SIGN IN