98sunny.hashnode.devWorking with SQL in GCPCreating a private CloudSQL instance Go to google console Select MySQL instance or whatever flavor you want. See the configurations which I chose for the cheapest alternative: NOTE: There are many factors and options to keep in mind. Some of ...Nov 15, 2024·3 min read
98sunny.hashnode.devCreating and test components in Angularcreating a component ng g c components/posts --skip-tests This line will not generate the test file. We will make it later. This component will try to get the posts and delete the posts. Code of the postComponent is given below: export class PostsCom...Aug 8, 2022·4 min read
98sunny.hashnode.devMocking Injected Service and BeforeEach ConceptsThis blog is a continuation of the last written blog. the link to that blog is : Click here Some checking Let us first check how many time the service is getting called. For that, let us put a debugger in the code as shown below. import { Injectable ...Aug 2, 2022·5 min read
98sunny.hashnode.devWriting first Angular test and moreThe goal of writing Automated testing is to increase the quality of software. Angular has 2 types of Unit tests: Isolated test- when we are trying to check the functionality of a single function. This means it is not dependent on any other function ...Jul 31, 2022·7 min read
98sunny.hashnode.devWriting First Unit test in JasmineNOTE: This is a continuation of Unit Testing-Introduction and Setup for Jasmine Some Terminologies to understand Before, we write the first unit test, we have to work on understanding some terminologies and naming conventions. We will be writing the ...Jul 30, 2022·6 min read