Feat/support multi languages #70
Annotations
7 errors and 1 warning
Test:
packages/swagger-client/src/OperationGenerator.test.tsx#L48
Error: Snapshot `OperationGenerator > [GET] should generate with pathParamsType `inline` 1` mismatched
- Expected
+ Received
@@ -27,27 +27,30 @@
],
"path": "showPetById.ts",
"root": "showPetById.ts",
},
],
- "language": "typescript",
+ "language": undefined,
"meta": {
"name": "showPetById",
"pluginKey": undefined,
"tag": "pets",
},
"override": undefined,
"path": "showPetById.ts",
"source": "/**
* @summary Info for a specific pet
* @link /pets/:pet_id */
- export async function showPetById(petId: ShowPetByIdPathParams["pet_id"], testId: ShowPetByIdPathParams["testId"], options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
+
+ export async function showPetById (petId: ShowPetByIdPathParams["pet_id"], testId: ShowPetByIdPathParams["testId"], options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
+
const res = await client<ShowPetByIdQueryResponse>({
method: "get",
url: `/pets/${petId}`,
...options
- });
- return res.data;
+ })
+ return res.data
+
}
",
},
]
❯ packages/swagger-client/src/OperationGenerator.test.tsx:48:19
|
Test:
packages/swagger-client/src/OperationGenerator.test.tsx#L79
Error: Snapshot `OperationGenerator > [GET] should generate with pathParamsType `object` 1` mismatched
- Expected
+ Received
@@ -27,27 +27,30 @@
],
"path": "showPetById.ts",
"root": "showPetById.ts",
},
],
- "language": "typescript",
+ "language": undefined,
"meta": {
"name": "showPetById",
"pluginKey": undefined,
"tag": "pets",
},
"override": undefined,
"path": "showPetById.ts",
"source": "/**
* @summary Info for a specific pet
* @link /pets/:pet_id */
- export async function showPetById({ petId, testId }: ShowPetByIdPathParams, options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
+
+ export async function showPetById ({ petId, testId }: ShowPetByIdPathParams, options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
+
const res = await client<ShowPetByIdQueryResponse>({
method: "get",
url: `/pets/${petId}`,
...options
- });
- return res.data;
+ })
+ return res.data
+
}
",
},
]
❯ packages/swagger-client/src/OperationGenerator.test.tsx:79:19
|
Test:
packages/swagger-client/src/OperationGenerator.test.tsx#L112
Error: Snapshot `OperationGenerator > [GET] should generate with templates 1` mismatched
- Expected
+ Received
@@ -33,22 +33,23 @@
"name": "axios",
"path": "axios",
"root": undefined,
},
],
- "language": "typescript",
+ "language": undefined,
"meta": {
"name": "showPetById",
"pluginKey": undefined,
"tag": "pets",
},
"override": undefined,
"path": "showPetById.ts",
"source": "/**
* @summary Info for a specific pet
* @link /pets/:pet_id */
- export async function showPetById({ petId, testId }: ShowPetByIdPathParams, options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
- return axios.get(`/pets/${petId}`, options);
+
+ export async function showPetById ({ petId, testId }: ShowPetByIdPathParams, options: Partial<Parameters<typeof client>[0]> = {}): Promise<ResponseConfig<ShowPetByIdQueryResponse>["data"]> {
+ return axios.get(`/pets/${petId}`, options
}
",
},
]
❯ packages/swagger-client/src/OperationGenerator.test.tsx:112:19
|
Test:
packages/react/src/components/Editor.test.tsx#L17
AssertionError: expected '' to include 'export const test = 2;'
❯ packages/react/src/components/Editor.test.tsx:17:25
|
Test:
packages/react/src/components/Editor.test.tsx#L32
AssertionError: expected '' to include 'test'
❯ packages/react/src/components/Editor.test.tsx:32:25
|
Test:
packages/swagger-client/src/components/Client.test.tsx#L55
Error: Snapshot `<Client/> > showPetById 1` mismatched
- Expected
+ Received
- "/**
- * @summary Info for a specific pet
- * @link /pets/:pet_id */
-
- export async function showPetById(
- { petId, testId }: ShowPetByIdPathParams,
- options: Partial<Parameters<typeof client>[0]> = {},
- ): Promise<ResponseConfig<ShowPetByIdQueryResponse>['data']> {
- const res = await client<ShowPetByIdQueryResponse>({
- method: 'get',
- url: `/pets/${petId}`,
- ...options,
- })
- return res.data
- }
- /**
- * @summary Info for a specific pet
- * @link /pets/:pet_id */
-
- export async function showPetById(
- { petId, testId }: ShowPetByIdPathParams,
- options: Partial<Parameters<typeof client>[0]> = {},
- ): Promise<ResponseConfig<ShowPetByIdQueryResponse>['data']> {
- const res = await client<ShowPetByIdQueryResponse>({
- method: 'get',
- url: `/pets/${petId}`,
- ...options,
- })
- return res.data
- }
- "
+ ""
❯ packages/swagger-client/src/components/Client.test.tsx:55:20
|
Test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/[email protected], actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading