react-code-dataset / next.js /test /e2e /chrome-devtools-workspace /chrome-devtools-workspace-custom-disable.test.ts
Download next.js/test/e2e/chrome-devtools-workspace/chrome-devtools-workspace-custom-disable.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/chrome-devtools-workspace/chrome-devtools-workspace-custom-disable.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/chrome-devtools-workspace/chrome-devtools-workspace-custom-disable.test.ts
-
curl -L -o chrome-devtools-workspace-custom-disable.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/chrome-devtools-workspace/chrome-devtools-workspace-custom-disable.test.ts
526 Bytes
| 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!') | |
| }) | |
| }) | |