Skip to content

Tag: javascript

how to give interface for joi-objectid?

I am using joi to validate the schema of my objects. For objectid validation joi has a seperate package joi-objectid. I am using it for objectid validation. But recently when i am trying to migrate my code into typescript joi is throwing an error that objectid does not exist on joi. Since it is added at runti…

NestJS Global Modules in tests

Is there a way to automatically provide all @Globalmodules into a TestModule ? (i.e without having to import them, the same way the main application works) So far, I had to make sure to insert any global modules into the import list of my call: Answer Global modules always have to be imported once for their p…