From a7e6a1822a336b037aee2de70c6d2839002e312e Mon Sep 17 00:00:00 2001 From: Shodai Suzuki Date: Sat, 25 May 2024 21:06:11 +0900 Subject: [PATCH] fix(msw): fix response http status code in handler function (#1400) --- packages/mock/src/msw/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mock/src/msw/index.ts b/packages/mock/src/msw/index.ts index f9d803d30..d5cc29e07 100644 --- a/packages/mock/src/msw/index.ts +++ b/packages/mock/src/msw/index.ts @@ -184,7 +184,7 @@ export const generateMSW = ( generatorVerbOptions, generatorOptions, response.definition.success, - '200', + response.types.success[0].key, response.imports, response.types.success, response.contentTypes,