1+ import { describe , expect , it } from 'vitest' ;
12import { z } from 'zod' ;
23import {
34 ApiGatewayEnvelope ,
@@ -30,7 +31,7 @@ describe('Types ', () => {
3031 { envelope : LambdaFunctionUrlEnvelope , name : 'LambdaFunctionUrl' } ,
3132 { envelope : VpcLatticeEnvelope , name : 'VpcLattice' } ,
3233 { envelope : VpcLatticeV2Envelope , name : 'VpcLatticeV2' } ,
33- ] ) ( 'should infer object for $name envelope' , ( testCase ) => {
34+ ] ) ( 'infers object types for $name envelope' , ( testCase ) => {
3435 type Result = ParserOutput < typeof userSchema , typeof testCase . envelope > ;
3536 // Define the expected type
3637
@@ -57,7 +58,7 @@ describe('Types ', () => {
5758 { envelope : SqsEnvelope , name : 'Sqs' } ,
5859 { envelope : SnsEnvelope , name : 'Sns' } ,
5960 { envelope : SnsSqsEnvelope , name : 'SnsSqs' } ,
60- ] ) ( 'should infer array type with $name envelope' , ( testCase ) => {
61+ ] ) ( 'infers array types with $name envelope' , ( testCase ) => {
6162 // Define the expected type
6263 type Result = ParserOutput < typeof userSchema , typeof testCase . envelope > ;
6364
0 commit comments