Skip to content

test: add core decorator, schema, and validation tests (76 tests)#67

Open
yogyam wants to merge 1 commit intoLeanMCP:mainfrom
yogyam:feature/core-decorator-tests
Open

test: add core decorator, schema, and validation tests (76 tests)#67
yogyam wants to merge 1 commit intoLeanMCP:mainfrom
yogyam:feature/core-decorator-tests

Conversation

@yogyam
Copy link
Contributor

@yogyam yogyam commented Feb 23, 2026

  • decorators.test.ts: 34 tests for @tool, @prompt, @resource, @Auth, @UserEnvs, @ui, @Render, @deprecated, getMethodMetadata, getDecoratedMethods
  • schema-generator.test.ts: 17 tests for @optional, @SchemaConstraint, classToJsonSchemaWithConstraints
  • validation.test.ts: 25 tests for validatePort, validatePath, validateServiceName, validateNonEmpty, validateUrl
  • jest.config.js: added jest types to ts-jest tsconfig override

- decorators.test.ts: 34 tests for @tool, @prompt, @resource, @Auth, @UserEnvs, @ui, @Render, @deprecated, getMethodMetadata, getDecoratedMethods
- schema-generator.test.ts: 17 tests for @optional, @SchemaConstraint, classToJsonSchemaWithConstraints
- validation.test.ts: 25 tests for validatePort, validatePath, validateServiceName, validateNonEmpty, validateUrl
- jest.config.js: added jest types to ts-jest tsconfig override
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant