-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/comprehensive testing #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6aadbc9
implemented decorators and providers
y-aithnini ada99be
Add notification and webhook controller tests
y-aithnini 571aecc
remove in-memory repository and update exports
y-aithnini 73009e2
removed mongoose
y-aithnini 4210d2c
Merge develop: resolve conflicts and update jest config for spec files
y-aithnini 96a80f6
removed duplicate code for sonarqube
y-aithnini aac7189
docs: add comprehensive documentation for testing implementation
y-aithnini 81e390e
style: fix prettier formatting issues
y-aithnini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| ### Added | ||
|
|
||
| - Comprehensive test suite with 133+ tests across 10 test suites | ||
| - Shared test utilities in `test/test-utils.ts` for easier testing | ||
| - Integration tests for end-to-end notification workflows | ||
| - Controller tests for REST API endpoints | ||
| - Module tests for NestJS dependency injection | ||
| - Mock implementations for testing: `MockRepository`, `MockSender`, `MockTemplateEngine` | ||
| - Test helper functions: `createNotificationServiceWithDeps()`, `createFailingNotificationServiceWithDeps()` | ||
| - Default test data: `defaultNotificationDto` | ||
|
|
||
| ### Changed | ||
|
|
||
| - Reduced code duplication from 4.3% to 2.66% (passing SonarQube quality gate) | ||
| - Improved test organization with centralized test utilities | ||
| - Enhanced documentation with comprehensive README and testing guidelines | ||
|
|
||
| ### Fixed | ||
|
|
||
| - ESLint configuration for test files | ||
| - TypeScript strict mode compatibility across all test files | ||
|
|
||
| ## [0.0.0] - Initial Release | ||
|
|
||
| ### Added | ||
|
|
||
| - Core notification service with support for Email, SMS, and Push notifications | ||
| - Multi-provider support (Twilio, AWS SNS, Firebase, Nodemailer, etc.) | ||
| - NestJS module integration with dependency injection | ||
| - Pluggable repository pattern for flexible data storage | ||
| - Event system for notification lifecycle tracking | ||
| - Template engine support (Handlebars and simple templates) | ||
| - Retry logic and notification state management | ||
| - REST API controllers (optional) | ||
| - Webhook handling (optional) | ||
| - Clean architecture with framework-agnostic core | ||
| - Full TypeScript support with type definitions | ||
|
|
||
| [Unreleased]: https://github.com/CISCODE-MA/NotificationKit/compare/v0.0.0...HEAD | ||
| [0.0.0]: https://github.com/CISCODE-MA/NotificationKit/releases/tag/v0.0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.