mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
17 lines
526 B
TypeScript
17 lines
526 B
TypeScript
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!')
|
|
})
|
|
})
|