silverwolf-x/project / test /development /app-dir /segment-explorer-globals /segment-explorer-globals.test.ts
silverwolf-x's picture
download
raw
711 Bytes
import { nextTestSetup } from 'e2e-utils'
import { getSegmentExplorerContent } from 'next-test-utils'
describe('segment-explorer - globals', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should show global-error segment', async () => {
const browser = await next.browser('/runtime-error')
expect(await getSegmentExplorerContent(browser)).toMatchInlineSnapshot(
`"app/ [global-error.tsx]"`
)
})
it('should display parallel routes default page when present', async () => {
const browser = await next.browser('/404-not-found')
expect(await getSegmentExplorerContent(browser)).toMatchInlineSnapshot(
`"app/ [global-not-found.tsx]"`
)
})
})

Xet Storage Details

Size:
711 Bytes
·
Xet hash:
9152c4875731ad197e97fd1e2b5a7ea67a894a37da7b2c728c7bfaca07721ace

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