MCPcopy
hub / github.com/vercel/next.js / runTests

Function runTests

test/integration/bigint/test/index.test.ts:19–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17let app
18
19const runTests = () => {
20 it('should return 200', async () => {
21 const res = await fetchViaHTTP(appPort, '/api/bigint', null, {
22 method: 'GET',
23 })
24 expect(res.status).toEqual(200)
25 })
26
27 it('should return the BigInt result text', async () => {
28 const resText = await fetchViaHTTP(appPort, '/api/bigint', null, {
29 method: 'GET',
30 }).then((res) => res.ok && res.text())
31 expect(resText).toEqual('3')
32 })
33}
34
35describe('bigint API route support', () => {
36 ;(process.env.TURBOPACK_BUILD ? describe.skip : describe)(

Callers 1

index.test.tsFile · 0.70

Calls 5

fetchViaHTTPFunction · 0.90
thenMethod · 0.80
textMethod · 0.65
itFunction · 0.50
expectFunction · 0.50

Tested by

no test coverage detected