A variant of TestReqBody representing a JSON request body.
Use this when you want to simulate an application/json payload in tests. The data field accepts any value; it will be serialized via JSON.stringify when the test HttpReq is constructed.
application/json
data
JSON.stringify
IMPORT_PATH: "@daiso-tech/core/http-router"
"@daiso-tech/core/http-router"
A variant of TestReqBody representing a JSON request body.
Use this when you want to simulate an
application/jsonpayload in tests. Thedatafield accepts any value; it will be serialized viaJSON.stringifywhen the test HttpReq is constructed.IMPORT_PATH:
"@daiso-tech/core/http-router"