Add support for specifying custom query string serializer and make header assertion case insensitive
The custom query string serializer could be used to specify how the query strings are serialized to a string before sending it in the request. For example:
import { stringify } from 'qs'
import { ApiRequest } from '@japa/api-client'
ApiRequest.setQsSerializer((value) => stringify(value))
test('send arrays in query string', ({ client }) => {
await client
.get('/')
.qs('ids', ['1']) // send as Array
.qs('usernames[]', 'virk') // send using array brackets in the key name
})3.1.0 (2025-05-06)
Bug Fixes
Features
What's Changed
New Contributors
Full Changelog: v3.0.4...v3.1.0