feat(contract)!: stricter implementation for contracts #401
Annotations
7 errors and 3 warnings
packages/server/src/builder-with-middlewares.test.ts > builderWithMiddlewares > .router:
packages/server/src/builder-with-middlewares.test.ts#L138
TypeError: Cannot read properties of undefined (reading 'value')
❯ packages/server/src/builder-with-middlewares.test.ts:138:66
|
packages/server/src/builder-with-middlewares.test.ts > builderWithMiddlewares > .lazy:
packages/server/src/builder-with-middlewares.test.ts#L151
TypeError: Cannot read properties of undefined (reading 'value')
❯ packages/server/src/builder-with-middlewares.test.ts:151:64
|
packages/server/src/builder.test.ts > builder > .router:
packages/server/src/builder.test.ts#L139
TypeError: Cannot read properties of undefined (reading 'value')
❯ packages/server/src/builder.test.ts:139:66
|
packages/server/src/builder.test.ts > builder > .lazy:
packages/server/src/builder.test.ts#L151
TypeError: Cannot read properties of undefined (reading 'value')
❯ packages/server/src/builder.test.ts:151:64
|
packages/server/src/router-implementer.test.ts > to AdaptedRouter > works:
packages/server/src/router-implementer.test.ts#L87
AssertionError: expected { …(3) } to deeply equal { mocked: true }
- Expected
+ Received
Object {
- "mocked": true,
+ "nested": Object {
+ "ping": DecoratedProcedure {
+ "~orpc": Object {
+ "contract": DecoratedContractProcedure {
+ "~orpc": Object {
+ "InputSchema": ZodObject {
+ "_cached": null,
+ "_def": Object {
+ "catchall": ZodNever {
+ "_def": Object {
+ "typeName": "ZodNever",
+ },
+ "and": [Function bound and],
+ "array": [Function bound array],
+ "brand": [Function bound brand],
+ "catch": [Function bound catch],
+ "default": [Function bound default],
+ "describe": [Function bound describe],
+ "isNullable": [Function bound isNullable],
+ "isOptional": [Function bound isOptional],
+ "nullable": [Function bound nullable],
+ "nullish": [Function bound nullish],
+ "optional": [Function bound optional],
+ "or": [Function bound or],
+ "parse": [Function bound parse],
+ "parseAsync": [Function bound parseAsync],
+ "pipe": [Function bound pipe],
+ "promise": [Function bound promise],
+ "readonly": [Function bound readonly],
+ "refine": [Function bound refine],
+ "refinement": [Function bound refinement],
+ "safeParse": [Function bound safeParse],
+ "safeParseAsync": [Function bound safeParseAsync],
+ "spa": [Function bound safeParseAsync],
+ "superRefine": [Function bound superRefine],
+ "transform": [Function bound transform],
+ "~standard": Object {
+ "validate": [Function validate],
+ "vendor": "zod",
+ "version": 1,
+ },
+ },
+ "shape": [Function shape],
+ "typeName": "ZodObject",
+ "unknownKeys": "strip",
+ },
+ "and": [Function bound and],
+ "array": [Function bound array],
+ "augment": [Function extend],
+ "brand": [Function bound brand],
+ "catch": [Function bound catch],
+ "default": [Function bound default],
+ "describe": [Function bound describe],
+ "isNullable": [Function bound isNullable],
+ "isOptional": [Function bound isOptional],
+ "nonstrict": [Function passthrough],
+ "nullable": [Function bound nullable],
+ "nullish": [Function bound nullish],
+ "optional": [Function bound optional],
+ "or": [Function bound or],
+ "parse": [Function bound parse],
+ "parseAsync": [Function bound parseAsync],
+ "pipe": [Function bound pipe],
+ "promise": [Function bound promise],
+ "readonly": [Function bound readonly],
+ "refine": [Function bound refine],
+ "refinement": [Function bound refinement],
+ "safeParse": [Function bound safeParse],
+ "safeParseAsync": [Function bound safeParseAsync],
+ "spa": [Function bound safeParseAsync],
+ "superRefine": [Function bound superRefine],
+ "transform": [Function bound transform],
+ "~standard": Object {
+ "validate": [Function validate],
+ "vendor": "zod",
+ "version": 1,
+ },
+ },
+ "OutputSchema": ZodObject {
+ "_cached": null,
+ "_def": Object {
+ "catchall": ZodNever {
+ "_def": Object {
+ "type
|
packages/server/src/router-implementer.test.ts > to AdaptedRouter > attach contract:
packages/server/src/router-implementer.test.ts#L101
AssertionError: expected undefined to be { …(3) } // Object.is equality
- Expected:
Object {
"nested": Object {
"ping": DecoratedContractProcedure {
"~orpc": Object {
"InputSchema": ZodObject {
"_cached": null,
"_def": Object {
"catchall": ZodNever {
"_def": Object {
"typeName": "ZodNever",
},
"and": [Function bound and],
"array": [Function bound array],
"brand": [Function bound brand],
"catch": [Function bound catch],
"default": [Function bound default],
"describe": [Function bound describe],
"isNullable": [Function bound isNullable],
"isOptional": [Function bound isOptional],
"nullable": [Function bound nullable],
"nullish": [Function bound nullish],
"optional": [Function bound optional],
"or": [Function bound or],
"parse": [Function bound parse],
"parseAsync": [Function bound parseAsync],
"pipe": [Function bound pipe],
"promise": [Function bound promise],
"readonly": [Function bound readonly],
"refine": [Function bound refine],
"refinement": [Function bound refinement],
"safeParse": [Function bound safeParse],
"safeParseAsync": [Function bound safeParseAsync],
"spa": [Function bound safeParseAsync],
"superRefine": [Function bound superRefine],
"transform": [Function bound transform],
"~standard": Object {
"validate": [Function validate],
"vendor": "zod",
"version": 1,
},
},
"shape": [Function shape],
"typeName": "ZodObject",
"unknownKeys": "strip",
},
"and": [Function bound and],
"array": [Function bound array],
"augment": [Function extend],
"brand": [Function bound brand],
"catch": [Function bound catch],
"default": [Function bound default],
"describe": [Function bound describe],
"isNullable": [Function bound isNullable],
"isOptional": [Function bound isOptional],
"nonstrict": [Function passthrough],
"nullable": [Function bound nullable],
"nullish": [Function bound nullish],
"optional": [Function bound optional],
"or": [Function bound or],
"parse": [Function bound parse],
"parseAsync": [Function bound parseAsync],
"pipe": [Function bound pipe],
"promise": [Function bound promise],
"readonly": [Function bound readonly],
"refine": [Function bound refine],
"refinement": [Function bound refinement],
"safeParse": [Function bound safeParse],
"safeParseAsync": [Function bound safeParseAsync],
"spa": [Function bound safeParseAsync],
"superRefine": [Function bound superRefine],
"transform": [Function bound transform],
"~standard": Object {
"validate": [Function validate],
"vendor": "zod",
"version": 1,
},
},
"OutputSchema": ZodObject {
"_cached": null,
"_def": Object {
"catchall": ZodNever {
"_def": Object {
"typeName": "ZodNever",
},
"and": [Function bound and],
"array": [Function bound array],
"brand": [Function bound brand],
"catch": [Function bound catch],
"default": [Function bound default],
"describe": [Function bound describe],
"isNullable": [Function bound isNullable],
"isOptional": [Function bound isOptional],
"nullable": [Function bound nullable],
"nullish": [Function bound nullish],
"optional": [Function bo
|
test
Process completed with exit code 1.
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
publish-commit
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|