()
| 17 | let app |
| 18 | |
| 19 | const 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 | |
| 35 | describe('bigint API route support', () => { |
| 36 | ;(process.env.TURBOPACK_BUILD ? describe.skip : describe)( |
no test coverage detected