fix: use of strict for anyOf #63
Annotations
6 errors and 1 warning
Test:
packages/swagger-faker/src/OperationGenerator.test.tsx#L43
Error: Snapshot `OperationGenerator > [GET] should generate 1` mismatched
- Expected
+ Received
@@ -70,17 +70,17 @@
/**
* @description unexpected error
*/
export function ListPetsError(override?: NonNullable<Partial<ListPetsError>>): NonNullable<ListPetsError> {
- return undefined(override);
+ return Error(override);
}
/**
* @description A paged array of pets
*/
export function ListPetsQueryResponse(override?: NonNullable<Partial<ListPetsQueryResponse>>): NonNullable<ListPetsQueryResponse> {
- return undefined(override);
+ return Pets(override);
}
",
},
]
❯ packages/swagger-faker/src/OperationGenerator.test.tsx:43:19
|
Test:
packages/swagger-faker/src/OperationGenerator.test.tsx#L74
Error: Snapshot `OperationGenerator > [GET] should generate with seed `[222]` 1` mismatched
- Expected
+ Received
@@ -72,18 +72,18 @@
* @description unexpected error
*/
export function ListPetsError(override?: NonNullable<Partial<ListPetsError>>): NonNullable<ListPetsError> {
faker.seed([222]);
- return undefined(override);
+ return Error(override);
}
/**
* @description A paged array of pets
*/
export function ListPetsQueryResponse(override?: NonNullable<Partial<ListPetsQueryResponse>>): NonNullable<ListPetsQueryResponse> {
faker.seed([222]);
- return undefined(override);
+ return Pets(override);
}
",
},
]
❯ packages/swagger-faker/src/OperationGenerator.test.tsx:74:19
|
Test:
packages/swagger-faker/src/OperationGenerator.test.tsx#L102
Error: Snapshot `OperationGenerator > [POST] should generate 1` mismatched
- Expected
+ Received
@@ -82,10 +82,10 @@
/**
* @description unexpected error
*/
export function CreatePetsError(override?: NonNullable<Partial<CreatePetsError>>): NonNullable<CreatePetsError> {
- return undefined(override);
+ return Error(override);
}
",
},
]
❯ packages/swagger-faker/src/OperationGenerator.test.tsx:102:19
|
Test:
packages/swagger-faker/src/components/Mutation.test.tsx#L64
Error: Snapshot `<Mutation/> > pets 1` mismatched
- Expected
+ Received
@@ -20,8 +20,8 @@
/**
* @description unexpected error
*/
export function createCreatePetsError(override?: NonNullable<Partial<CreatePetsError>>): NonNullable<CreatePetsError> {
- return undefined(override)
+ return createError(override)
}
"
❯ packages/swagger-faker/src/components/Mutation.test.tsx:64:20
|
Test:
packages/swagger-faker/src/components/Query.test.tsx#L64
Error: Snapshot `<Query/> > showPetById 1` mismatched
- Expected
+ Received
@@ -8,16 +8,16 @@
/**
* @description unexpected error
*/
export function createShowPetByIdError(override?: NonNullable<Partial<ShowPetByIdError>>): NonNullable<ShowPetByIdError> {
- return undefined(override)
+ return createError(override)
}
/**
* @description Expected response to a valid request
*/
export function createShowPetByIdQueryResponse(override?: NonNullable<Partial<ShowPetByIdQueryResponse>>): NonNullable<ShowPetByIdQueryResponse> {
- return undefined(override)
+ return createPet(override)
}
"
❯ packages/swagger-faker/src/components/Query.test.tsx:64: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