silverwolf-x/project / test /e2e /edge-runtime-pages-api-route /edge-runtime-pages-api-route.test.ts
silverwolf-x's picture
download
raw
506 Bytes
import { nextTestSetup } from 'e2e-utils'
describe('Edge runtime pages-api route', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should work edge runtime', async () => {
const res = await next.fetch('/api/edge')
const text = await res.text()
expect(text).toContain('All Good')
})
it('should work with node runtime', async () => {
const res = await next.fetch('/api/node')
const text = await res.text()
expect(text).toContain('All Good')
})
})

Xet Storage Details

Size:
506 Bytes
·
Xet hash:
6c7958f681db63df589a6d37c9b920361873b8b6f3f08ee93f133c8b5df105ad

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