Skip to content

chore: set minimum node.js to 18.12.0 LTS #3146

chore: set minimum node.js to 18.12.0 LTS

chore: set minimum node.js to 18.12.0 LTS #3146

GitHub Actions / Test Results succeeded Oct 19, 2023 in 0s

All 197 tests pass in 1m 44s

  10 files  ±0    40 suites  ±0   1m 44s ⏱️ -21s
197 tests ±0  197 ✔️ ±0  0 💤 ±0  0 ±0 
208 runs  ±0  208 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 3048e4d. ± Comparison against earlier commit d9b28f8.

Annotations

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

197 tests found

There are 197 tests, see "Raw output" for the full list of tests.
Raw output
 should return message from request ‑  should return message from request
AWS Lambda: PingController should reply with ok on ping/async ‑ AWS Lambda: PingController should reply with ok on ping/async
AWS Lambda: PingController should reply with ok on ping/sync ‑ AWS Lambda: PingController should reply with ok on ping/sync
Bootstrap test should apply global prefix for routes ‑ Bootstrap test should apply global prefix for routes
Bootstrap test should autoload controller when URL given ‑ Bootstrap test should autoload controller when URL given
Bootstrap test should autoload controller when file URL given ‑ Bootstrap test should autoload controller when file URL given
Bootstrap test should autoload controller when import.meta.url given ‑ Bootstrap test should autoload controller when import.meta.url given
Bootstrap test should autoload controller when path given ‑ Bootstrap test should autoload controller when path given
Bootstrap test should be able to bootstrap when mask is string ‑ Bootstrap test should be able to bootstrap when mask is string
Bootstrap test should bootstrap request handler ‑ Bootstrap test should bootstrap request handler
Bootstrap test should load specified controllers ‑ Bootstrap test should load specified controllers
Bootstrap test should not bootstrap server when try to bootstrap controllers/handlers with same routes ‑ Bootstrap test should not bootstrap server when try to bootstrap controllers/handlers with same routes
Bootstrap test should skip broken controller ‑ Bootstrap test should skip broken controller
Bootstrap test should throw an error while bootstrap application ‑ Bootstrap test should throw an error while bootstrap application
Bootstrap test should throw error when class loader defined by some library and specified in config ‑ Bootstrap test should throw error when class loader defined by some library and specified in config
Controller: Message Controller should create new entity and return it ‑ Controller: Message Controller should create new entity and return it
Controller: Message Controller should find message by id ‑ Controller: Message Controller should find message by id
Controller: Message Controller should omit extra properties from response ‑ Controller: Message Controller should omit extra properties from response
Controller: Message Controller should return all messages ‑ Controller: Message Controller should return all messages
Controller: Message Controller should throw error when message not found ‑ Controller: Message Controller should throw error when message not found
Controller: User should delete existing user ‑ Controller: User should delete existing user
Controller: User should return 404 error when user does exist ‑ Controller: User should return 404 error when user does exist
Controller: User should return 404 when deleting not existing user ‑ Controller: User should return 404 when deleting not existing user
Controller: User should return unprocessable entity error when new user name is busy ‑ Controller: User should return unprocessable entity error when new user name is busy
Controller: User should return username when creating user ‑ Controller: User should return username when creating user
Controller: User should return username when user exists ‑ Controller: User should return username when user exists
Controllers dependency injection tests Controller with @Inject decorator should work with async service ‑ Controllers dependency injection tests Controller with @Inject decorator should work with async service
Controllers dependency injection tests Controller with @Inject decorator should work with service injected by token ‑ Controllers dependency injection tests Controller with @Inject decorator should work with service injected by token
Controllers dependency injection tests Controller with @Inject decorator should work with sync service ‑ Controllers dependency injection tests Controller with @Inject decorator should work with sync service
Controllers dependency injection tests Controller with constructor should be able to inject request/reply in service and use ‑ Controllers dependency injection tests Controller with constructor should be able to inject request/reply in service and use
Controllers dependency injection tests Controller with constructor should work with async service ‑ Controllers dependency injection tests Controller with constructor should work with async service
Controllers dependency injection tests Controller with constructor should work with sync service ‑ Controllers dependency injection tests Controller with constructor should work with sync service
Controllers dependency injection tests should be able to inject request/reply in first level service ‑ Controllers dependency injection tests should be able to inject request/reply in first level service
Controllers dependency injection tests should be able to inject request/reply in second level service ‑ Controllers dependency injection tests should be able to inject request/reply in second level service
Controllers dependency injection tests should be able to inject request/reply in third level service ‑ Controllers dependency injection tests should be able to inject request/reply in third level service
Controllers dependency injection tests should work with sync service ‑ Controllers dependency injection tests should work with sync service
Controllers error handling tests Stateful controller error handling support should trigger custom error handler ‑ Controllers error handling tests Stateful controller error handling support should trigger custom error handler
Controllers error handling tests Stateful controller error handling support should trigger generic error handler ‑ Controllers error handling tests Stateful controller error handling support should trigger generic error handler
Controllers error handling tests Stateful controller error handling support should trigger syntax error handler ‑ Controllers error handling tests Stateful controller error handling support should trigger syntax error handler
Controllers error handling tests Stateful controller error handling support should trigger type error handler ‑ Controllers error handling tests Stateful controller error handling support should trigger type error handler
Controllers error handling tests Stateless controller error handling support should trigger custom error handler ‑ Controllers error handling tests Stateless controller error handling support should trigger custom error handler
Controllers error handling tests Stateless controller error handling support should trigger generic error handler ‑ Controllers error handling tests Stateless controller error handling support should trigger generic error handler
Controllers error handling tests Stateless controller error handling support should trigger syntax error handler ‑ Controllers error handling tests Stateless controller error handling support should trigger syntax error handler
Controllers error handling tests Stateless controller error handling support should trigger type error handler ‑ Controllers error handling tests Stateless controller error handling support should trigger type error handler
Controllers hooks tests Stateful controller should support hooks ‑ Controllers hooks tests Stateful controller should support hooks
Controllers hooks tests Stateless controller should support hooks ‑ Controllers hooks tests Stateless controller should support hooks
Controllers inheritance test abstract should inherit parent routes when controller has own methods ‑ Controllers inheritance test abstract should inherit parent routes when controller has own methods
Controllers inheritance test abstract should not affect other derivatives ‑ Controllers inheritance test abstract should not affect other derivatives
Controllers inheritance test abstract should reply on own methods from inherited controller ‑ Controllers inheritance test abstract should reply on own methods from inherited controller
Controllers inheritance test abstract should reply on ping request to inherited controller ‑ Controllers inheritance test abstract should reply on ping request to inherited controller
Controllers inheritance test abstract should reply on ping-ping request with message from inherited controller ‑ Controllers inheritance test abstract should reply on ping-ping request with message from inherited controller
Controllers inheritance test parent should inherit parent routes when controller has own methods ‑ Controllers inheritance test parent should inherit parent routes when controller has own methods
Controllers inheritance test parent should not affect other derivatives ‑ Controllers inheritance test parent should not affect other derivatives
Controllers inheritance test parent should reply on own methods from inherited controller ‑ Controllers inheritance test parent should reply on own methods from inherited controller
Controllers inheritance test parent should reply on ping request to inherited controller ‑ Controllers inheritance test parent should reply on ping request to inherited controller
Controllers inheritance test parent should reply on ping-ping request with message from inherited controller ‑ Controllers inheritance test parent should reply on ping-ping request with message from inherited controller
Decorator: @Initializer should reject deferred when async initializer failed ‑ Decorator: @Initializer should reject deferred when async initializer failed
Decorator: @Initializer should reject deferred when some of dependencies initializer failed ‑ Decorator: @Initializer should reject deferred when some of dependencies initializer failed
Decorator: @Initializer should resolve deferred when async initializer of service and it's dependencies succeeded ‑ Decorator: @Initializer should resolve deferred when async initializer of service and it's dependencies succeeded
Decorator: @Initializer should resolve deferred when async initializer succeeded ‑ Decorator: @Initializer should resolve deferred when async initializer succeeded
Decorator: @Inject should create metadata for inject ‑ Decorator: @Inject should create metadata for inject
Decorator: @Inject should not override metadata when it exists ‑ Decorator: @Inject should not override metadata when it exists
Decorator: destructor should decorate service with Destructor symbol ‑ Decorator: destructor should decorate service with Destructor symbol
Decorators / helpers / Swagger helper should create tags object and inject tags into oas object when it does not contains tags object ‑ Decorators / helpers / Swagger helper should create tags object and inject tags into oas object when it does not contains tags object
Decorators / helpers / Swagger helper should create tags object and inject tags into openapiDocument object when it does not contains tags object ‑ Decorators / helpers / Swagger helper should create tags object and inject tags into openapiDocument object when it does not contains tags object
Decorators / helpers / Swagger helper should create tags object and inject tags into swagger object when it does not contains tags object ‑ Decorators / helpers / Swagger helper should create tags object and inject tags into swagger object when it does not contains tags object
Decorators / helpers / Swagger helper should do nothing when swagger configuration not found ‑ Decorators / helpers / Swagger helper should do nothing when swagger configuration not found
Decorators / helpers / Swagger helper should inject tags into oas object when it contains tags object ‑ Decorators / helpers / Swagger helper should inject tags into oas object when it contains tags object
Decorators / helpers / Swagger helper should inject tags into openapiDocument object when it contains tags object ‑ Decorators / helpers / Swagger helper should inject tags into openapiDocument object when it contains tags object
Decorators / helpers / Swagger helper should inject tags into swagger object when it contains tags object ‑ Decorators / helpers / Swagger helper should inject tags into swagger object when it contains tags object
Decorators / helpers / Swagger helper should not add hook when tags are empty ‑ Decorators / helpers / Swagger helper should not add hook when tags are empty
Decorators: @IErrorHandler should add annotated method to controller options ‑ Decorators: @IErrorHandler should add annotated method to controller options
Decorators: @IHook should add method annotated with @IHook to controller options ‑ Decorators: @IHook should add method annotated with @IHook to controller options
Decorators: @Service should call initializer when instantiate service ‑ Decorators: @Service should call initializer when instantiate service
Decorators: @Service should create new instances for different scopes ‑ Decorators: @Service should create new instances for different scopes
Decorators: @Service should register destructor when instantiate service ‑ Decorators: @Service should register destructor when instantiate service
Decorators: @Service should return same instance if service created multiple times within same scope ‑ Decorators: @Service should return same instance if service created multiple times within same scope
Decorators: request handlers should instantiate ALL handler ‑ Decorators: request handlers should instantiate ALL handler
Decorators: request handlers should instantiate DELETE handler ‑ Decorators: request handlers should instantiate DELETE handler
Decorators: request handlers should instantiate GET handler ‑ Decorators: request handlers should instantiate GET handler
Decorators: request handlers should instantiate HEAD handler ‑ Decorators: request handlers should instantiate HEAD handler
Decorators: request handlers should instantiate OPTIONS handler ‑ Decorators: request handlers should instantiate OPTIONS handler
Decorators: request handlers should instantiate PATCH handler ‑ Decorators: request handlers should instantiate PATCH handler
Decorators: request handlers should instantiate POST handler ‑ Decorators: request handlers should instantiate POST handler
Decorators: request handlers should instantiate PUT handler ‑ Decorators: request handlers should instantiate PUT handler
Facade: MessageFacade should create message ‑ Facade: MessageFacade should create message
Facade: MessageFacade should return all messages ‑ Facade: MessageFacade should return all messages
Facade: MessageFacade should return message by id ‑ Facade: MessageFacade should return message by id
Factory: request decorators error handling support should call TypeError handler only ‑ Factory: request decorators error handling support should call TypeError handler only
Factory: request decorators error handling support should call general error handler when TypeError specific fails ‑ Factory: request decorators error handling support should call general error handler when TypeError specific fails
Factory: request decorators error handling support should call general error handler when non TypeError received ‑ Factory: request decorators error handling support should call general error handler when non TypeError received
Factory: request decorators error handling support should register error handler ‑ Factory: request decorators error handling support should register error handler
Factory: request decorators hooks support onSend option should relate to onSend hook fn defined ‑ Factory: request decorators hooks support onSend option should relate to onSend hook fn defined
Factory: request decorators hooks support should add hook to hook handlers array in options ‑ Factory: request decorators hooks support should add hook to hook handlers array in options
Factory: request decorators hooks support should create defined hook in options when it does not exists ‑ Factory: request decorators hooks support should create defined hook in options when it does not exists
Factory: request decorators hooks support should wrap current hook and add one more if hook exists in options ‑ Factory: request decorators hooks support should wrap current hook and add one more if hook exists in options
Factory: request decorators should parse config with URL and options ‑ Factory: request decorators should parse config with URL and options
Factory: request decorators should parse config with URL only ‑ Factory: request decorators should parse config with URL only
Factory: request decorators should parse empty config ‑ Factory: request decorators should parse empty config
Factory: request decorators should parse route config ‑ Factory: request decorators should parse route config
Helper: inject controller options should inject default options into object if they are not exists ‑ Helper: inject controller options should inject default options into object if they are not exists
Helper: inject controller options should not inject anything if object has options ‑ Helper: inject controller options should not inject anything if object has options
Helper: inject controller options should throw when trying to apply it to non function-like objects ‑ Helper: inject controller options should throw when trying to apply it to non function-like objects
Helpers: Container empty container should have 0 length ‑ Helpers: Container empty container should have 0 length
Helpers: Container should dynamically change content when parent container updated ‑ Helpers: Container should dynamically change content when parent container updated
Helpers: Container should iterate over parent container elements first ‑ Helpers: Container should iterate over parent container elements first
Helpers: Container should return length equals to containers items count ‑ Helpers: Container should return length equals to containers items count
Helpers: Container should sum parent container length ‑ Helpers: Container should sum parent container length
Helpers: class properties check if error handlers symbol exists should return false when not exists ‑ Helpers: class properties check if error handlers symbol exists should return false when not exists
Helpers: class properties check if error handlers symbol exists should return true when exists ‑ Helpers: class properties check if error handlers symbol exists should return true when exists
Helpers: class properties check if handlers symbol exists should return false when not exists ‑ Helpers: class properties check if handlers symbol exists should return false when not exists
Helpers: class properties check if handlers symbol exists should return true when exists ‑ Helpers: class properties check if handlers symbol exists should return true when exists
Helpers: class properties check if hooks symbol exists should return false when not exists ‑ Helpers: class properties check if hooks symbol exists should return false when not exists
Helpers: class properties check if hooks symbol exists should return true when exists ‑ Helpers: class properties check if hooks symbol exists should return true when exists
Helpers: class properties ensure object has error handlers symbol should create when not exists ‑ Helpers: class properties ensure object has error handlers symbol should create when not exists
Helpers: class properties ensure object has error handlers symbol should not create when exists ‑ Helpers: class properties ensure object has error handlers symbol should not create when exists
Helpers: class properties ensure object has handlers symbol should create when not exists ‑ Helpers: class properties ensure object has handlers symbol should create when not exists
Helpers: class properties ensure object has handlers symbol should not create when exists ‑ Helpers: class properties ensure object has handlers symbol should not create when exists
Helpers: class properties ensure object has hooks symbol should create when not exists ‑ Helpers: class properties ensure object has hooks symbol should create when not exists
Helpers: class properties ensure object has hooks symbol should not create when exists ‑ Helpers: class properties ensure object has hooks symbol should not create when exists
Helpers: create errors handler should create error handler which will catch errors specified ‑ Helpers: create errors handler should create error handler which will catch errors specified
Helpers: create errors handler should throw error when no handlers match ‑ Helpers: create errors handler should throw error when no handlers match
Helpers: create errors handler should throw to next error handler when previous throws ‑ Helpers: create errors handler should throw to next error handler when previous throws
Helpers: ensure service injection checking whether class has service injection should return false when class has no service injection ‑ Helpers: ensure service injection checking whether class has service injection should return false when class has no service injection
Helpers: ensure service injection checking whether class has service injection should return true when class has service injection ‑ Helpers: ensure service injection checking whether class has service injection should return true when class has service injection
Helpers: ensure service injection checking whether class has service injection should return true when parent class has service injection ‑ Helpers: ensure service injection checking whether class has service injection should return true when parent class has service injection
Helpers: ensure service injection ensuring class has service injection field should create container for service injection ‑ Helpers: ensure service injection ensuring class has service injection field should create container for service injection
Helpers: ensure service injection ensuring class has service injection field should create own container when class have inherited ‑ Helpers: ensure service injection ensuring class has service injection field should create own container when class have inherited
Helpers: inject dependencies Defined by @Inject should inject service ‑ Helpers: inject dependencies Defined by @Inject should inject service
Helpers: inject dependencies Defined by @Inject should throw when service was not found in Injectables ‑ Helpers: inject dependencies Defined by @Inject should throw when service was not found in Injectables
Helpers: inject dependencies should cache result ‑ Helpers: inject dependencies should cache result
Messages CRUD test should be able to find message by id ‑ Messages CRUD test should be able to find message by id
RequestHandlers hooks support should return username when user exists ‑ RequestHandlers hooks support should return username when user exists
States controllers tests Stateful controller should save state ‑ States controllers tests Stateful controller should save state
States controllers tests Stateless controller should not save state ‑ States controllers tests Stateless controller should not save state
Strategies: controller types Per request strategy Error handling should call TypeError handler only ‑ Strategies: controller types Per request strategy Error handling should call TypeError handler only
Strategies: controller types Per request strategy Error handling should call general error handler when TypeError handler throws error ‑ Strategies: controller types Per request strategy Error handling should call general error handler when TypeError handler throws error
Strategies: controller types Per request strategy Error handling should call general error handler when error is not TypeError or derivatives ‑ Strategies: controller types Per request strategy Error handling should call general error handler when error is not TypeError or derivatives
Strategies: controller types Per request strategy Error handling should register error handler ‑ Strategies: controller types Per request strategy Error handling should register error handler
Strategies: controller types Per request strategy should create controller with handler ‑ Strategies: controller types Per request strategy should create controller with handler
Strategies: controller types Per request strategy should do nothing with empty controller ‑ Strategies: controller types Per request strategy should do nothing with empty controller
Strategies: controller types Per request strategy should inject tags into handlers and swagger configuration ‑ Strategies: controller types Per request strategy should inject tags into handlers and swagger configuration
Strategies: controller types Per request strategy should keep tags defined in handler over tags from controller ‑ Strategies: controller types Per request strategy should keep tags defined in handler over tags from controller
Strategies: controller types Per request strategy should register onRequest hook ‑ Strategies: controller types Per request strategy should register onRequest hook
Strategies: controller types Singleton strategy Error handling should call TypeError handler only ‑ Strategies: controller types Singleton strategy Error handling should call TypeError handler only
Strategies: controller types Singleton strategy Error handling should call general error handler when TypeError handler throws error ‑ Strategies: controller types Singleton strategy Error handling should call general error handler when TypeError handler throws error
Strategies: controller types Singleton strategy Error handling should call general error handler when error is not TypeError or derivatives ‑ Strategies: controller types Singleton strategy Error handling should call general error handler when error is not TypeError or derivatives
Strategies: controller types Singleton strategy Error handling should register error handler ‑ Strategies: controller types Singleton strategy Error handling should register error handler
Strategies: controller types Singleton strategy should create controller with handler ‑ Strategies: controller types Singleton strategy should create controller with handler
Strategies: controller types Singleton strategy should do nothing with empty controller ‑ Strategies: controller types Singleton strategy should do nothing with empty controller
Strategies: controller types Singleton strategy should inject tags into handlers and swagger configuration ‑ Strategies: controller types Singleton strategy should inject tags into handlers and swagger configuration
Strategies: controller types Singleton strategy should keep tags defined in handler over tags from controller ‑ Strategies: controller types Singleton strategy should keep tags defined in handler over tags from controller
Strategies: controller types Singleton strategy should register onRequest hook ‑ Strategies: controller types Singleton strategy should register onRequest hook
Testing: configure controller test should be able to mock dependencies given via @Inject ‑ Testing: configure controller test should be able to mock dependencies given via @Inject
Testing: configure controller test should bootstrap controller with async service ‑ Testing: configure controller test should bootstrap controller with async service
Testing: configure controller test should bootstrap controller with mocked dependency ‑ Testing: configure controller test should bootstrap controller with mocked dependency
Testing: configure controller test should bootstrap controller ‑ Testing: configure controller test should bootstrap controller
Testing: configure controller test should decorate instance with controller property ‑ Testing: configure controller test should decorate instance with controller property
Testing: configure controller test should inject custom fastify instance ‑ Testing: configure controller test should inject custom fastify instance
Testing: configure controller test should inject fastify instance ‑ Testing: configure controller test should inject fastify instance
Testing: configure controller test should not cache results ‑ Testing: configure controller test should not cache results
Testing: configure controller test should not override mocked injection of fastify instance ‑ Testing: configure controller test should not override mocked injection of fastify instance
Testing: configure controller test with plugins should be able to register plugin with opts ‑ Testing: configure controller test with plugins should be able to register plugin with opts
Testing: configure controller test with plugins should be able to register plugin ‑ Testing: configure controller test with plugins should be able to register plugin
Testing: configure service test async service setup Compatibility with Promise should not fail with services without initializer ‑ Testing: configure service test async service setup Compatibility with Promise should not fail with services without initializer
Testing: configure service test async service setup Compatibility with Promise should support catch ‑ Testing: configure service test async service setup Compatibility with Promise should support catch
Testing: configure service test async service setup Compatibility with Promise should support finally ‑ Testing: configure service test async service setup Compatibility with Promise should support finally
Testing: configure service test async service setup Compatibility with Promise should support then with one argument ‑ Testing: configure service test async service setup Compatibility with Promise should support then with one argument
Testing: configure service test async service setup Compatibility with Promise should support then with two arguments ‑ Testing: configure service test async service setup Compatibility with Promise should support then with two arguments
Testing: configure service test async service setup should be able to catch error in async initializer ‑ Testing: configure service test async service setup should be able to catch error in async initializer
Testing: configure service test async service setup should be able to configure async service ‑ Testing: configure service test async service setup should be able to configure async service
Testing: configure service test async service setup should not call initializer twice ‑ Testing: configure service test async service setup should not call initializer twice
Testing: configure service test should be able to configure service and all it's dependencies ‑ Testing: configure service test should be able to configure service and all it's dependencies
Testing: configure service test should be able to configure service and mock it's dependencies provided via @Inject ‑ Testing: configure service test should be able to configure service and mock it's dependencies provided via @Inject
Testing: configure service test should be able to configure service and mock it's dependencies provided via constructor ‑ Testing: configure service test should be able to configure service and mock it's dependencies provided via constructor
Testing: configure service test should be able to configure test for service without dependencies ‑ Testing: configure service test should be able to configure test for service without dependencies
Testing: configure service test should be able to load plugins onto fastify instance ‑ Testing: configure service test should be able to load plugins onto fastify instance
Testing: configure service test should inject fastify instance ‑ Testing: configure service test should inject fastify instance
Testing: configure service test should not override mocked injection of fastify instance ‑ Testing: configure service test should not override mocked injection of fastify instance
Testing: configure service test should throw error when instantiating class without service decorator ‑ Testing: configure service test should throw error when instantiating class without service decorator
Testing: configure service test should use custom fastify instance ‑ Testing: configure service test should use custom fastify instance
Testing: mocks manager should create injectables map from another one ‑ Testing: mocks manager should create injectables map from another one
Testing: mocks manager should overwrite values from original holder with providers ‑ Testing: mocks manager should overwrite values from original holder with providers
Use container should register after controller creation hook ‑ Use container should register after controller creation hook
Use container should register before controller creation hook ‑ Use container should register before controller creation hook
Use container should register controller in container on beforeControllerCreation ‑ Use container should register controller in container on beforeControllerCreation
User feature should delete existing user ‑ User feature should delete existing user
User feature should return 404 error when user does exist ‑ User feature should return 404 error when user does exist
User feature should return 404 when deleting not existing user ‑ User feature should return 404 when deleting not existing user
User feature should return unprocessable entity error when new user name is busy ‑ User feature should return unprocessable entity error when new user name is busy
User feature should return username when creating user ‑ User feature should return username when creating user
User feature should return username when user exists ‑ User feature should return username when user exists
Utils: deferred should be able to reject promise ‑ Utils: deferred should be able to reject promise
Utils: deferred should be able to resolve promise ‑ Utils: deferred should be able to resolve promise
Utils: validators is valid registrable should return false when class has no CREATOR property ‑ Utils: validators is valid registrable should return false when class has no CREATOR property
Utils: validators is valid registrable should return false when null given ‑ Utils: validators is valid registrable should return false when null given
Utils: validators is valid registrable should return true when CREATER in target ‑ Utils: validators is valid registrable should return true when CREATER in target