Buckets:
silverwolf-x/project / test /e2e /api-resolver-query-writeable /api-resolver-query-writeable.test.ts
| import { nextTestSetup } from 'e2e-utils' | |
| describe('api-resolver-query-writeable', () => { | |
| const { next, skipped } = nextTestSetup({ | |
| files: __dirname, | |
| skipDeployment: true, | |
| startCommand: 'node server.js', | |
| serverReadyPattern: /Next mode: (production|development)/, | |
| dependencies: { | |
| 'get-port': '5.1.1', | |
| express: '5.1.0', | |
| }, | |
| }) | |
| if (skipped) { | |
| return | |
| } | |
| it('should allow req.query to be writable and reflect changes made in the API handler', async () => { | |
| const res = await next.fetch('/api?hello=yes', { | |
| headers: { | |
| 'Content-Type': 'application/json; charset=utf-8', | |
| }, | |
| }) | |
| if (!res.ok) { | |
| throw new Error('Fetch failed') | |
| } | |
| const data = await res.json() | |
| expect(data).toEqual({ query: { hello: 'yes', changed: 'yes' } }) | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 824 Bytes
- Xet hash:
- fe12198b4bef5a37433c0acdaf4e8137a5b18a8c9b44f1e22f9358bfd5eb6a2a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.