silverwolf-x/project / test /e2e /chrome-devtools-workspace /chrome-devtools-workspace-base-path.test.ts
silverwolf-x's picture
download
raw
803 Bytes
import * as path from 'path'
import { nextTestSetup } from 'e2e-utils'
describe('chrome-devtools-workspace basePath', () => {
const { isNextDev, next } = nextTestSetup({
files: path.join(__dirname, 'fixtures', 'base-path'),
})
it('should be able to connect to Chrome DevTools in dev with a configured basePath', async () => {
const devtoolsResponse = await next.fetch(
// Chrome DevTools always requests `/`.
'/.well-known/appspecific/com.chrome.devtools.json'
)
if (isNextDev) {
const json = await devtoolsResponse.json()
expect(json).toEqual({
workspace: {
uuid: expect.any(String),
root: next.testDir,
},
})
} else {
expect({ status: devtoolsResponse.status }).toEqual({ status: 404 })
}
})
})

Xet Storage Details

Size:
803 Bytes
·
Xet hash:
bcf60ac824b668915780bff5d7a1724018e6be91f61bd79ea3d980a3f356d463

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.