<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Giulio Dellorbo</title>
    <description>The latest articles on DEV Community by Giulio Dellorbo (@egm0121).</description>
    <link>https://dev.to/egm0121</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F728296%2F7c0d79e3-55c5-4e84-9ccf-0534b2b63f9c.jpeg</url>
      <title>DEV Community: Giulio Dellorbo</title>
      <link>https://dev.to/egm0121</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/egm0121"/>
    <language>en</language>
    <item>
      <title>Write Jest tests faster in VS Code with this extension</title>
      <dc:creator>Giulio Dellorbo</dc:creator>
      <pubDate>Sun, 18 Sep 2022 14:06:32 +0000</pubDate>
      <link>https://dev.to/egm0121/write-faster-jest-tests-in-vs-code-with-this-extension-1kej</link>
      <guid>https://dev.to/egm0121/write-faster-jest-tests-in-vs-code-with-this-extension-1kej</guid>
      <description>&lt;p&gt;Hey there!&lt;/p&gt;

&lt;p&gt;I’ve just released the VS Code extension for &lt;code&gt;jest-test-gen&lt;/code&gt;, this is the fastest way to get an initial unit test file with boilerplate code in one click, directly from your favorite IDE.&lt;/p&gt;

&lt;p&gt;To try it out simply use the link to install the extension:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=com-egm0121.vs-jest-test-gen"&gt;https://marketplace.visualstudio.com/items?itemName=com-egm0121.vs-jest-test-gen&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;or just search for “&lt;strong&gt;jest test gen&lt;/strong&gt;” inside the extension search bar in VS Code.&lt;/p&gt;

&lt;p&gt;This will add a new command called “Generate Jest tests” to your command palette.&lt;/p&gt;

&lt;p&gt;To use it simply open a (js| ts | tsx ) file in VS Code and then run the “Generate Jest tests” command and the generate unit test file will be written next to your source file and opened in the editor for you.&lt;/p&gt;

&lt;p&gt;It supports code generation for the following exports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Typescript typed React class &amp;amp;&amp;amp; functional components &lt;/li&gt;
&lt;li&gt;React class &amp;amp;&amp;amp; functional components &lt;/li&gt;
&lt;li&gt;ES6 Classes &lt;/li&gt;
&lt;li&gt;Named functions and arrow functions&lt;/li&gt;
&lt;li&gt;POJOs with methods&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it out and let me know your feedback! 😃&lt;/p&gt;

&lt;p&gt;For any issue found with the generated code, file an Issue on the &lt;code&gt;jest-test-gen&lt;/code&gt; repo: &lt;a href="https://github.com/egm0121/jest-test-gen"&gt;https://github.com/egm0121/jest-test-gen&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you find this useful, please ⭐️ the project on &lt;a href="https://github.com/egm0121/jest-test-gen"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy Coding!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>testing</category>
      <category>showdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Generate tests for your React components with jest-test-gen</title>
      <dc:creator>Giulio Dellorbo</dc:creator>
      <pubDate>Thu, 07 Jul 2022 00:19:55 +0000</pubDate>
      <link>https://dev.to/egm0121/generate-tests-for-your-react-components-with-jest-test-gen-4cf0</link>
      <guid>https://dev.to/egm0121/generate-tests-for-your-react-components-with-jest-test-gen-4cf0</guid>
      <description>&lt;p&gt;Hey 👋&lt;/p&gt;

&lt;p&gt;I’ve released v1.0.0 of the test scaffolding generator tool &lt;code&gt;jest-test-gen&lt;/code&gt;, introducing support for React components 🎉&lt;/p&gt;

&lt;p&gt;You can now pass a path to a source file that exports one or more React components and it will automatically detect them and generate an initial jest test file containing snapshot tests for each exported component.&lt;/p&gt;

&lt;p&gt;The generated code uses react-test-renderer to get a serializable tree of components that is then used by jest for snapshot testing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1wy1hx6tc6ulengtrv1p.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1wy1hx6tc6ulengtrv1p.jpeg" alt="generated component snapshot test"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When propTypes are available, the component’s props will be passed to the component for testing, as a placeholder for the value of the props, a comment containing the type of the expected prop is inserted. This makes it easy to provide suitable prop values for testing purposes and makes sure that all component props are being tested.&lt;/p&gt;

&lt;p&gt;jest-test-gen will recognize both class-based and functional components.&lt;/p&gt;

&lt;p&gt;To give it a try, you can install the CLI tool via npm:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npm install -g jest-test-gen


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;and run it to get a generated test file:&lt;/p&gt;

&lt;p&gt;jest-test-gen ~/demoproject/src/components/myReactComponent.js&lt;/p&gt;

&lt;p&gt;Please ⭐️ the repo &lt;a href="https://github.com/egm0121/jest-test-gen" rel="noopener noreferrer"&gt;jest-test-gen on Github&lt;/a&gt; if you find it useful.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>testing</category>
      <category>jest</category>
      <category>react</category>
    </item>
    <item>
      <title>3 resources to pass the AWS SAA-02 — Solution Architect Associate certification</title>
      <dc:creator>Giulio Dellorbo</dc:creator>
      <pubDate>Wed, 29 Dec 2021 13:16:11 +0000</pubDate>
      <link>https://dev.to/egm0121/3-resources-to-pass-the-aws-saa-02-solution-architect-associate-certification-2lap</link>
      <guid>https://dev.to/egm0121/3-resources-to-pass-the-aws-saa-02-solution-architect-associate-certification-2lap</guid>
      <description>&lt;p&gt;Hey there 👋,&lt;/p&gt;

&lt;p&gt;I’ve recently got my AWS Solution Architect Certification, I thought it would be useful to share my experience and list the resources that I’ve used for studying and exam prep.&lt;/p&gt;

&lt;p&gt;To add some context, I’ve been working with a relatively small subset of AWS services on and off for the last couple of years, mainly gravitating around object storage, NoSQL databases, serverless stacks, decoupled software systems using Kinesis, SQS, and SNS.&lt;/p&gt;

&lt;p&gt;For me, this certification was an engaging way to deepen and expand my knowledge of the AWS Cloud and its ever-growing list of high-level and low-level building blocks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📚 Study resources:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To start, I’ve purchased this study guide and read it on my Kindle:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.amazon.com/Certified-Solutions-Architect-Study-Guide-ebook-dp-B08P7ZWY23/dp/B08P7ZWY23/ref=mt_other?_encoding=UTF8&amp;amp;me=&amp;amp;qid="&gt;AWS Certified Solutions Architect Study Guide: Associate SAA-C02 Exam by Ben Piper, David Clinton&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is a comprehensive guide although some services are not covered in detail, the book is almost 500 pages long, divided into 14 chapters.&lt;br&gt;
The first nine chapters are dedicated to the most useful AWS services grouped by category.&lt;br&gt;
The last 4 chapters focus on the AWS well-architected framework and the best practices according to the five pillars:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reliability&lt;/li&gt;
&lt;li&gt;Performance&lt;/li&gt;
&lt;li&gt;Security&lt;/li&gt;
&lt;li&gt;Cost efficiency&lt;/li&gt;
&lt;li&gt;Operational efficiency&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Overall this guide will give you a complete overview of all the most important AWS services.&lt;br&gt;
Another plus is that every chapter comes with test questions at the end of it to help you validate your knowledge and get accustomed to the format and types of the questions found in the actual exam.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📖 Official AWS Frequently Asked Questions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The online documentation for each AWS service and particularly the FAQ sections have been an incredible source of knowledge and I consider it crucial for thorough exam preparation.&lt;/p&gt;

&lt;p&gt;The FAQs are a long read! I’ve decided to focus on a subset of services that are either fundamental for the exam or that I personally wasn’t too familiar with.&lt;br&gt;
Here is my list:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/ec2/faqs/"&gt;Amazon EC2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/s3/faqs/"&gt;Amazon S3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/ecs/faqs/"&gt;Amazon ECS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/vpc/faqs/"&gt;Amazon VPC&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/route53/faqs/"&gt;Amazon Route 53&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/rds/faqs/"&gt;Amazon RDS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/sqs/faqs/"&gt;Amazon SQS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/global-accelerator/faqs/"&gt;AWS Global Accelerator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/fsx/windows/faqs/"&gt;Amazon FSx for Windows File Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/fsx/lustre/faqs/"&gt;Amazon FSx for Lustre&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/fargate/faqs/"&gt;Amazon Fargate&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;🧐 Practice exams&lt;/strong&gt;&lt;br&gt;
To simulate the exam experience with realistic questions and a cumulative test score there are a few popular options online.&lt;/p&gt;

&lt;p&gt;After reading many of reviews I’ve decided to purchase the &lt;a href="https://www.udemy.com/course/aws-certified-solutions-architect-associate-amazon-practice-exams-saa-c02/"&gt;AWS Certified Solutions Architect Associate Practice Tests&lt;/a&gt; by Jon Bonso on Udemy.&lt;br&gt;
The price is currently 29.99$ for 6 practice exams (390 questions in total).&lt;/p&gt;

&lt;p&gt;The questions are of similar complexity to the ones found in the actual exam.&lt;br&gt;
Each exam is 60 questions long and there is a timer ⏱ just like in the real exam. It’s useful to keep an eye on your pace even if in this mock exams you are allowed to go over time.&lt;br&gt;
What I especially liked about these practice tests were the answer’s explanations. You get a detailed write-up on why the correct answer works and why the incorrect answers are not fitting in that specific use case or context.&lt;br&gt;
It takes time to read them all but reading the explanations for both correct and incorrect answers really helped me clarify some edge cases.&lt;/p&gt;

&lt;p&gt;That’s about it, these are the three resources that helped me, if you found this post useful, please give a clap and follow me here or on &lt;a href="https://github.com/egm0121"&gt;Github&lt;/a&gt; 👍🏼&lt;/p&gt;

&lt;p&gt;Good luck with your AWS SAA-C02 exam 🍀!&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>certification</category>
      <category>programming</category>
    </item>
    <item>
      <title>Write less, test faster with jest-test-gen</title>
      <dc:creator>Giulio Dellorbo</dc:creator>
      <pubDate>Sun, 17 Oct 2021 19:50:57 +0000</pubDate>
      <link>https://dev.to/egm0121/write-less-test-faster-with-jest-test-gen-3lm0</link>
      <guid>https://dev.to/egm0121/write-less-test-faster-with-jest-test-gen-3lm0</guid>
      <description>&lt;p&gt;Hello everyone 👋&lt;/p&gt;

&lt;p&gt;First time posting here in the dev.to community!&lt;/p&gt;

&lt;h1&gt;
  
  
  What is jest-test-gen
&lt;/h1&gt;

&lt;p&gt;I wanted to introduce a small cli utility &lt;a href="https://www.npmjs.com/package/jest-test-gen"&gt;jest-test-gen&lt;/a&gt; that I wrote to speed up writing Jest unit tests.&lt;/p&gt;

&lt;p&gt;Every time I start writing a new test file for my code some initial boilerplate is always required:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;import all the exports from the source file to be tested&lt;/li&gt;
&lt;li&gt;import the external dependencies used in my source file&lt;/li&gt;
&lt;li&gt;setup jest mocks for the dependencies used in the source code&lt;/li&gt;
&lt;li&gt;create tests blocks for every exported function / class method in my source file.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted to automate part of this process by parsing the source file and generating an initial test file containing the initial scaffolding, this way I can quickly start writing the actual logic for my tests.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to use it
&lt;/h1&gt;

&lt;p&gt;To generate a test file just install the tool&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm i -g jest-test-gen&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and invoke it passing the path to your source file as the first argument:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;jest-test-gen ~/demoproject/src/services/myServiceClass.js&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The tool will generate a file named &lt;code&gt;myServiceClass.generated.test.js&lt;/code&gt; in the same folder.&lt;/p&gt;

&lt;p&gt;Try it out and give it a like here or ⭐️ the repo if you find it useful.&lt;/p&gt;

&lt;p&gt;You can find the repo here: &lt;a href="https://github.com/egm0121/jest-test-gen"&gt;jest-test-gen on Github&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>javascript</category>
      <category>testing</category>
      <category>jest</category>
    </item>
  </channel>
</rss>
