WIP: chore: create a development guide to be used as context for AI to gen… - #13
Open
tnramalho wants to merge 1 commit into
Open
WIP: chore: create a development guide to be used as context for AI to gen…#13tnramalho wants to merge 1 commit into
tnramalho wants to merge 1 commit into
GitHub Actions / Jest Tests
succeeded
Aug 29, 2025 in 0s
58 passed, 0 failed and 0 skipped
✅ junit.xml
58 tests were completed in 17s with 58 passed, 0 failed and 0 skipped.
| Test suite | Passed | Failed | Skipped | Time |
|---|---|---|---|---|
| AuthOAuthController | 10✅ | 957ms | ||
| AuthPasswordController | 4✅ | 822ms | ||
| AuthTokenRefreshController | 5✅ | 741ms | ||
| rockets-server-options-default.config | 20✅ | 6s | ||
| RocketsServerNotificationService | 8✅ | 804ms | ||
| RocketsServerOtpService | 11✅ | 2s |
✅ AuthOAuthController
AuthOAuthController authorize should return void for authorize endpoint
✅ AuthOAuthController authorize should return void for authorize endpoint
AuthOAuthController callback should return authentication response when user is provided
✅ AuthOAuthController callback should return authentication response when user is provided
AuthOAuthController callback should handle service errors
✅ AuthOAuthController callback should handle service errors
AuthOAuthController callbackPost should return authentication response when user is provided
✅ AuthOAuthController callbackPost should return authentication response when user is provided
AuthOAuthController callbackPost should handle service errors
✅ AuthOAuthController callbackPost should handle service errors
AuthOAuthController callbackPost should handle different user IDs
✅ AuthOAuthController callbackPost should handle different user IDs
AuthOAuthController controller instantiation should be defined
✅ AuthOAuthController controller instantiation should be defined
AuthOAuthController controller instantiation should have authorize method
✅ AuthOAuthController controller instantiation should have authorize method
AuthOAuthController controller instantiation should have callback method
✅ AuthOAuthController controller instantiation should have callback method
AuthOAuthController controller instantiation should have callbackPost method
✅ AuthOAuthController controller instantiation should have callbackPost method
✅ AuthPasswordController
AuthPasswordController login should return authentication response when user is provided
✅ AuthPasswordController login should return authentication response when user is provided
AuthPasswordController login should handle service errors
✅ AuthPasswordController login should handle service errors
AuthPasswordController controller instantiation should be defined
✅ AuthPasswordController controller instantiation should be defined
AuthPasswordController controller instantiation should have login method
✅ AuthPasswordController controller instantiation should have login method
✅ AuthTokenRefreshController
AuthTokenRefreshController refresh should return authentication response when user is provided
✅ AuthTokenRefreshController refresh should return authentication response when user is provided
AuthTokenRefreshController refresh should handle service errors
✅ AuthTokenRefreshController refresh should handle service errors
AuthTokenRefreshController refresh should handle different user IDs
✅ AuthTokenRefreshController refresh should handle different user IDs
AuthTokenRefreshController controller instantiation should be defined
✅ AuthTokenRefreshController controller instantiation should be defined
AuthTokenRefreshController controller instantiation should have refresh method
✅ AuthTokenRefreshController controller instantiation should have refresh method
✅ rockets-server-options-default.config
rockets-server-options-default.config authenticationOptionsDefaultConfig should create default configuration with environment variables
✅ rockets-server-options-default.config authenticationOptionsDefaultConfig should create default configuration with environment variables
rockets-server-options-default.config authenticationOptionsDefaultConfig should create default configuration with fallback values
✅ rockets-server-options-default.config authenticationOptionsDefaultConfig should create default configuration with fallback values
rockets-server-options-default.config authenticationOptionsDefaultConfig should handle missing environment variables
✅ rockets-server-options-default.config authenticationOptionsDefaultConfig should handle missing environment variables
rockets-server-options-default.config authenticationOptionsDefaultConfig should throw error in production without access secret
✅ rockets-server-options-default.config authenticationOptionsDefaultConfig should throw error in production without access secret
rockets-server-options-default.config authenticationOptionsDefaultConfig should use access secret when provided
✅ rockets-server-options-default.config authenticationOptionsDefaultConfig should use access secret when provided
rockets-server-options-default.config authenticationOptionsDefaultConfig should use refresh secret when provided
✅ rockets-server-options-default.config authenticationOptionsDefaultConfig should use refresh secret when provided
rockets-server-options-default.config configureAccessSecret (internal function) should throw JwtConfigUndefinedException when options is null
✅ rockets-server-options-default.config configureAccessSecret (internal function) should throw JwtConfigUndefinedException when options is null
rockets-server-options-default.config configureAccessSecret (internal function) should use environment access secret when provided
✅ rockets-server-options-default.config configureAccessSecret (internal function) should use environment access secret when provided
rockets-server-options-default.config configureAccessSecret (internal function) should throw InternalServerErrorException in production without secret
✅ rockets-server-options-default.config configureAccessSecret (internal function) should throw InternalServerErrorException in production without secret
rockets-server-options-default.config configureAccessSecret (internal function) should generate random UUID when not in production and no secret provided
✅ rockets-server-options-default.config configureAccessSecret (internal function) should generate random UUID when not in production and no secret provided
rockets-server-options-default.config configureRefreshSecret (internal function) should use environment refresh secret when provided
✅ rockets-server-options-default.config configureRefreshSecret (internal function) should use environment refresh secret when provided
rockets-server-options-default.config configureRefreshSecret (internal function) should copy access secret when refresh secret not provided
✅ rockets-server-options-default.config configureRefreshSecret (internal function) should copy access secret when refresh secret not provided
rockets-server-options-default.config environment variable combinations should handle all JWT environment variables set
✅ rockets-server-options-default.config environment variable combinations should handle all JWT environment variables set
rockets-server-options-default.config environment variable combinations should handle only default expires in set
✅ rockets-server-options-default.config environment variable combinations should handle only default expires in set
rockets-server-options-default.config environment variable combinations should handle only access expires in set
✅ rockets-server-options-default.config environment variable combinations should handle only access expires in set
rockets-server-options-default.config environment variable combinations should handle only refresh expires in set
✅ rockets-server-options-default.config environment variable combinations should handle only refresh expires in set
rockets-server-options-default.config environment variable combinations should handle no environment variables set
✅ rockets-server-options-default.config environment variable combinations should handle no environment variables set
rockets-server-options-default.config error scenarios should throw InternalServerErrorException in production without access secret
✅ rockets-server-options-default.config error scenarios should throw InternalServerErrorException in production without access secret
rockets-server-options-default.config error scenarios should not throw in development without access secret
✅ rockets-server-options-default.config error scenarios should not throw in development without access secret
rockets-server-options-default.config error scenarios should handle production with access secret
✅ rockets-server-options-default.config error scenarios should handle production with access secret
✅ RocketsServerNotificationService
RocketsServerNotificationService sendOtpEmail should send OTP email successfully
✅ RocketsServerNotificationService sendOtpEmail should send OTP email successfully
RocketsServerNotificationService sendOtpEmail should handle different email and passcode values
✅ RocketsServerNotificationService sendOtpEmail should handle different email and passcode values
RocketsServerNotificationService sendOtpEmail should use settings from configuration
✅ RocketsServerNotificationService sendOtpEmail should use settings from configuration
RocketsServerNotificationService sendOtpEmail should handle email service errors
✅ RocketsServerNotificationService sendOtpEmail should handle email service errors
RocketsServerNotificationService sendOtpEmail should handle empty passcode
✅ RocketsServerNotificationService sendOtpEmail should handle empty passcode
RocketsServerNotificationService sendOtpEmail should handle special characters in passcode
✅ RocketsServerNotificationService sendOtpEmail should handle special characters in passcode
RocketsServerNotificationService service instantiation should be defined
✅ RocketsServerNotificationService service instantiation should be defined
RocketsServerNotificationService service instantiation should implement RocketsServerOtpNotificationServiceInterface
✅ RocketsServerNotificationService service instantiation should implement RocketsServerOtpNotificationServiceInterface
✅ RocketsServerOtpService
RocketsServerOtpService sendOtp should send OTP when user exists
✅ RocketsServerOtpService sendOtp should send OTP when user exists
RocketsServerOtpService sendOtp should not send OTP when user does not exist
✅ RocketsServerOtpService sendOtp should not send OTP when user does not exist
RocketsServerOtpService sendOtp should throw error when notification service fails
✅ RocketsServerOtpService sendOtp should throw error when notification service fails
RocketsServerOtpService sendOtp should throw error when OTP service fails
✅ RocketsServerOtpService sendOtp should throw error when OTP service fails
RocketsServerOtpService confirmOtp should confirm OTP successfully when user exists and OTP is valid
✅ RocketsServerOtpService confirmOtp should confirm OTP successfully when user exists and OTP is valid
RocketsServerOtpService confirmOtp should throw OtpException when user does not exist
✅ RocketsServerOtpService confirmOtp should throw OtpException when user does not exist
RocketsServerOtpService confirmOtp should throw OtpException when OTP is invalid
✅ RocketsServerOtpService confirmOtp should throw OtpException when OTP is invalid
RocketsServerOtpService confirmOtp should throw OtpException when OTP service throws error
✅ RocketsServerOtpService confirmOtp should throw OtpException when OTP service throws error
RocketsServerOtpService confirmOtp should throw OtpException when user lookup service throws error
✅ RocketsServerOtpService confirmOtp should throw OtpException when user lookup service throws error
RocketsServerOtpService constructor should be defined
✅ RocketsServerOtpService constructor should be defined
RocketsServerOtpService constructor should have all required dependencies injected
✅ RocketsServerOtpService constructor should have all required dependencies injected
Loading