<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gergo Bence Szucs on Medium]]></title>
        <description><![CDATA[Stories by Gergo Bence Szucs on Medium]]></description>
        <link>https://medium.com/@gergobenceszucs?source=rss-8d040cb467fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*PIiNNHw2ub3-w0CGmrIDmA.jpeg</url>
            <title>Stories by Gergo Bence Szucs on Medium</title>
            <link>https://medium.com/@gergobenceszucs?source=rss-8d040cb467fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 01:24:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gergobenceszucs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Emulate user actions in Angular]]></title>
            <link>https://medium.com/betsson-group/emulate-user-actions-in-angular-9c298dca7f16?source=rss-8d040cb467fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c298dca7f16</guid>
            <category><![CDATA[end-to-end-testing]]></category>
            <category><![CDATA[jasmine]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[protractor]]></category>
            <dc:creator><![CDATA[Gergo Bence Szucs]]></dc:creator>
            <pubDate>Thu, 05 Nov 2020 10:33:57 GMT</pubDate>
            <atom:updated>2020-11-05T10:33:57.781Z</atom:updated>
            <content:encoded><![CDATA[<h4>A guide to end-to-end testing with Protractor &amp; Jasmine.</h4><p>Unit testing is really powerful to verify our components’ logic in an isolated environment by mocking their dependencies. However, sometimes we want exactly the opposite; to test how our components interact with each other. This is a convenient way to mimic and automate the actions of a real person within our application.</p><p>Stepping one level higher in abstraction, let’s talk about how <strong>end-to-end (e2e) testing</strong> works with the <strong>Protractor </strong>framework, why it’s useful and how you can utilize it in your Angular project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*nUAMFRMF8ON3jTvt0g5HDQ.png" /></figure><h3>Internals of the Protractor framework</h3><p>Protractor provides a powerful framework to execute Angular e2e tests, by <strong>integrating the webdriver-manager package</strong>, which is used <strong>to start up a local selenium server</strong>. <strong>This server will be utilized to create a web-browser instance</strong> (e.g. a new Chrome window) <strong>and handle the Protractor requests sent to the website</strong>.</p><p>When doing e2e testing, most of our instructions will be asynchronous (because we actually need the page to handle our request, e.g. DOM changes, backend communication, navigation).</p><blockquote>The best part of Protractor is the fact that it’s able to <strong>automatically wait for Angular requests to complete</strong>, allowing us to write test cases in a synchronous style while keeping the asynchronous behavior.</blockquote><p>However, in the second part of the article, we’ll take a look at scenarios where this feature can’t be used and how it’s possible to still write simple unit tests, with the async/await style.</p><h3>Getting started with Protractor</h3><p>Using npm, you can set up Protractor in a blink of an eye. The official documentation advises to install the Protractor and webdriver-manager packages globally. However, it may be a better idea to <strong>allow Protractor to handle the selenium server internally</strong>. This isn’t only better because you can skip the global installation of the webdriver-manager, but <strong>Protractor will handle the starting and stopping of each instance automatically. 👍</strong></p><p>Such configuration can be done via a <strong>configuration file</strong>, which is a mandatory parameter for Protractor to execute the test cases.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79a994cfd208f2faf21a1d9e47618340/href">https://medium.com/media/79a994cfd208f2faf21a1d9e47618340/href</a></iframe><p>Looking at this configuration file, we can see that the actual test cases come from the specs/home folder. <strong>So when we execute </strong>protractor conf.js<strong>, the framework takes over control, launches a local selenium server and a Chrome browser instance (either headless or visible, based on the settings) and executes the specified test cases</strong>. Did you notice that we’re usingconf.js? You may ask, aren’t we working with TypeScript? Well, we’re, but the web browser isn’t. ⚠️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBnEnppKoWRW_bgleChb-A.png" /></figure><p>So before you could do any testing, all your <strong>TypeScript files must be compiled to JavaScript first</strong>. To do so, you have to execute the npm run tsc command while having a properly configured tsconfig.json file in your project’s root folder, something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/62482111527a04b36c932317249b8d9a/href">https://medium.com/media/62482111527a04b36c932317249b8d9a/href</a></iframe><p>The important part is <strong>properly setting the files to include and exclude from compilation</strong>. Source mapping (mapping the JavaScript files to their TypeScript source, so breakpoints in the browser can be properly shown in TypeScript files) should be enabled if you would like to debug the tests (we’ll take a look at that at the end of the article). You may notice, that there is a specs and a pageObjects folder. Let’s see what exactly they are.</p><h3>Organizing the test cases</h3><p>To properly organize your test cases you should separate the DOM manipulation/queries from the actual validation.</p><blockquote><strong>A Protractor test has two major parts, a spec file and a page object.</strong></blockquote><p>Let’s imagine a simple test, where your page loads, and you want to navigate to the user’s profile. With Protractor, you don’t have to worry about when the page actually finished loading, your test won’t run until every Angular process has finished (just imagine your test trying to find the user profile link when the page hasn’t finished loading/rendering).</p><p>So as a first step, you would write a CSS query to locate the user profile button (let’s say it’s a button with the class ‘user-profile’). That part should go into the page object file (the file’s name should conventionally end with .po.ts) as it’s a DOM query.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee8af48523c490f5176ecaeee96469d9/href">https://medium.com/media/ee8af48523c490f5176ecaeee96469d9/href</a></iframe><p>Calling this function retrieves the profile button from the DOM, clicks on it, and waits until the onClick event is completed. Imagine that the click navigates to another page, where the URL will be in the format of /profile/{userid}. To test if this click event actually navigates the page, you could write the following test case in a spec file (the file’s name should end with .spec.ts).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6fe2c1df9638f3017263455d28320ed2/href">https://medium.com/media/6fe2c1df9638f3017263455d28320ed2/href</a></iframe><blockquote><strong>Notice, that even Jasmine’s </strong><strong>expect function can resolve promises while using Protractor.</strong></blockquote><p>Apart from creating page objects, it’s also a good habit to separate tests into different test suites. This is done by putting the files into separate folders (e.g. pageObjects/home/*.po.ts and specs/home/*.spec.ts). This allows us to run only some specific test suites and separate our test cases both logically and physically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*1ftZUKSl8m6EUQlAKklejA.jpeg" /></figure><h3>The async/await style</h3><p><strong>In cases when you have a non-angular page</strong> (or some part of your application, like a non-angular authentication page at startup)<strong> or you have constant polling to a backend </strong>(which means Angular will never actually finish its actions)<strong>, you can’t take advantage of Protractor’s automatic await functionality.</strong> The good thing is, it’s not really hard to emulate manually.</p><p>First, the configuration file has to be modified, by adding the SELENIUM_PROMISE_MANAGER:false property, which will turn off the control flow.</p><blockquote><strong>Note that this functionality is being deprecated in the webdriver-manager, which could result in making the async/await style the only way to write Protractor tests in the future.</strong></blockquote><p>The same test could be rewritten to async/await style like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9e56ce4b7919ebd5f702dc6cff96a5d/href">https://medium.com/media/b9e56ce4b7919ebd5f702dc6cff96a5d/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c31fa293e0cc9f2c99c0d760fba210a4/href">https://medium.com/media/c31fa293e0cc9f2c99c0d760fba210a4/href</a></iframe><p>You would expect the test to run properly by simply adding the necessary async and await keywords, however, without Protractor’s automating waiting feature, calling the click function on an element, doesn’t do anything apart from firing the onClick event. Even if you’d await that call, it won’t be able to wait for the actual emitted event to complete. That part must be written manually in this case.</p><h3>Debugging Protactor tests</h3><p>With source mapping enabled, it’s relatively easy to debug Protractor tests. Using Visual Studio Code, you’ll have to create (or extend if you have it already) the launch.json file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/282289159e30f0510a58bf9d9868f4c8/href">https://medium.com/media/282289159e30f0510a58bf9d9868f4c8/href</a></iframe><blockquote><strong>This configuration allows you to put breakpoints into your tests and due to the source mapping, it finds the appropriate TypeScript code, even when running in a browser.</strong></blockquote><p>To launch a debug session, open the debug screen in VS Code, select the recently added profile and click on the start button. It fires up the e2e tests according to your configuration and you can start debugging by adding some breakpoints to your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*XSQ8ie_FXtpQ_A0jxu5yRg.png" /></figure><p>Now that you know the basics of Protractor and end-to-end testing, it’s time to use this knowledge, by opening up your favorite Angular code and creating some more advanced test cases. Have fun!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c298dca7f16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/betsson-group/emulate-user-actions-in-angular-9c298dca7f16">Emulate user actions in Angular</a> was originally published in <a href="https://medium.com/betsson-group">Betsson Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A comprehensive guide to Angular unit testing]]></title>
            <link>https://medium.com/betsson-group/a-comprehensive-guide-to-angular-unit-testing-ac2a9ab77016?source=rss-8d040cb467fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac2a9ab77016</guid>
            <category><![CDATA[karma]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[jasmine]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Gergo Bence Szucs]]></dc:creator>
            <pubDate>Wed, 18 Dec 2019 07:16:01 GMT</pubDate>
            <atom:updated>2019-12-18T07:16:01.259Z</atom:updated>
            <content:encoded><![CDATA[<h4>Strategies and pitfalls using the default Jasmine and Karma frameworks.</h4><p>In the past years, test-driven development (TDD) has become a standard in software engineering, as it inspires to achieve clean code by enforcing developers to think twice before typing 👌. In this article, we will take a closer look at <a href="https://jasmine.github.io/">Jasmine</a>, a behavior-driven development (BDD) framework to create unit tests and <a href="https://karma-runner.github.io/latest/index.html">Karma</a> to run them in pre-configured environments while using <a href="https://angular.io/">Angular</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*WtAzmTMi5sdji-D2kAFWrA.png" /><figcaption>Image by <a href="https://medium.com/frontend-fun/angular-unit-testing-jasmine-karma-step-by-step-e3376d110ab4">Santiago García da Rosa</a></figcaption></figure><p>The <a href="https://cli.angular.io/">Angular CLI</a> takes care of the configuration of these frameworks when you create a new project with the command ng new my-app. The karma.conf.js file in the main directory of your new project is used to fine-tune Karma’s settings, while the *.spec.ts files are the ones where you can define your Jasmine unit tests.</p><p><strong>Running </strong>ng test<strong> commands Karma to</strong> search for the spec files in the specified folders (as defined in thekarma.conf.js file), <strong>evaluate every test and present the results</strong> in the console as well as in a new browser window (depending on the configuration).</p><blockquote>Letting ng test continuously run in the background is a great practice, as it will recompile and update the test results anytime one of the source files is modified.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gk7ZTTHXP1MUc7P7FOvs8g.png" /></figure><h4>Style conventions</h4><p><strong>One of the trendy ways to write unit tests is the AAA (Arrange, Act, Assert) style</strong>. With this method, tests<strong> </strong>start with setting up initial values (arrange), then changing them in a reasonable way (act) and finally checking whether the modification achieves the desired outcome (assert).</p><p>In case of similar unit tests, it’s possible that the arrange sections are exactly the same. It may seem logical to move them to a common function that runs before each test (actually there are utility functions like this in most unit testing frameworks, we will cover those later). However, in unit testing, the <strong>DRY</strong> (Don’t repeat yourself) principle doesn’t have to be strictly obeyed, some <strong>DAMP</strong>ness (Descriptive And Meaningful Phrases) is reasonable to make sure tests can be understood individually, hence it is absolutely fine to retain the redundant arrange segments. Generally, you can’t go wrong with either solution, in the end, it all comes down to personal preference or project conventions 😊.</p><p>There are two major types of <strong>unit tests</strong> in Angular. Both of them <strong>should be easy to write and test only one thing</strong> (multiple assertions for the same behavior are good). However, <strong>isolated tests</strong> are for components only, while <strong>integration tests</strong> are also testing the associated template file and external dependencies. So let’s start with the former, as it’s pretty much just a stripped-down version of the latter.</p><h3>Testing in isolation</h3><p>As we mentioned earlier, an isolated unit test only covers the component code. Let’s start by examining the automatically generated unit test in our new Angular project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f2ef80a5c357727011a16fc7f248965/href">https://medium.com/media/1f2ef80a5c357727011a16fc7f248965/href</a></iframe><p><strong>The </strong>describe()<strong> function is the test suite</strong>, it wraps the individual test specs (it() functions) and optional inner test suites (embedded describe() methods) together. Using the first string parameter for both utilities, you can define a human-readable description for the tests. <strong>The name of a test suite should be the name of the component, </strong>for inner suites the name of the component’s functionality (a good way to group tests together) and <strong>for the test cases, it shall start with ‘should’ and clearly describe the intention of the given test</strong>. <strong>The </strong>expect() <strong>function compares its parameter to the provided value using matchers</strong>. You can read more about the built-in matchers <a href="https://jasmine.github.io/api/3.5/matchers">here</a>.</p><blockquote>As mentioned earlier, Angular also provides <strong>setup and teardown functions, where you can write code to be executed before or after the individual test</strong> <strong>cases</strong>. These are beforeAll(), beforeEach(), afterAll() and afterEach().</blockquote><h4>Enable/disable test cases</h4><p>It’s also possible to control which tests should be executed. You can <strong>omit test suites or individual tests from the test run by prepending an ‘x’</strong> to their name (e.g. xdescribe() or xit()) or you can <strong>focus on them to make sure only the marked ones will run by prepending an ‘f’</strong> to them in a similar fashion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*ov_wUuccCFsJxyX3UGwMwg.gif" /></figure><h3>Testing a simple service</h3><p>Angular has a built-in dependency injection framework that most components use in a real application. However, a component level test suite shouldn’t focus on testing the injected dependencies (many times those are coming from external parties anyway). Consider this straightforward implementation for a service that handles user logins.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d6acd2b8a3a0434c46f32d3d72ef867/href">https://medium.com/media/7d6acd2b8a3a0434c46f32d3d72ef867/href</a></iframe><p>Testing this service (without any dependencies) is quite easy.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76d10c48efeed08334a0c2bf46c342f2/href">https://medium.com/media/76d10c48efeed08334a0c2bf46c342f2/href</a></iframe><p>However, such mere code is unique, due to the nature of Angular, you will probably have dependencies in your components, let’s see what you can do in those cases.</p><h3>Mocking with spies</h3><p>Assume that you have a component that uses the previous login service.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9a006fa94fc3ae7575d44232c51bc6c4/href">https://medium.com/media/9a006fa94fc3ae7575d44232c51bc6c4/href</a></iframe><p>When testing this, you don’t want to worry about the injected LoginService, its implementation should be tested in another test file. We could create fake objects, override functions, but these methods will be cumbersome for complex services. Thankfully, Jasmine provides a way to make the injected components behave like we want them to, using spies.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FZNFmtw8hXOJu8%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FZNFmtw8hXOJu8%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FZNFmtw8hXOJu8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="330" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b3cb6a07189b784cd25d2b3cc083081/href">https://medium.com/media/6b3cb6a07189b784cd25d2b3cc083081/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d6ae158058d67d95e4136ea13b39957d/href">https://medium.com/media/d6ae158058d67d95e4136ea13b39957d/href</a></iframe><p>As you can see, using a spy on an existing service is really easy and handy, <strong>you can simply override the return value of a function which your component depends on</strong>. Imagine if you would have an HTTP call in the login function, you can simply override the function’s behavior to return a successful response code or an object with a dummy value.</p><h3>Angular TestBed</h3><p>There is one thing however in the previous example that we may want to change. Instead of initiating the dependencies manually, we could rely on a handy solution provided by Angular, <strong>the TestBed</strong>, which <strong>mimics the context of a real Angular app for our tests.</strong> Apart from handling dependency injection and change detection, it also allows the testing of templates and user interactions 😎, which we will need in our integrated unit tests.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef67368da8bf1cd93dd6e38d08f93cd8/href">https://medium.com/media/ef67368da8bf1cd93dd6e38d08f93cd8/href</a></iframe><p>Using the TestBed is rather straightforward as you can see. It doesn’t necessarily alter our test cases, we just get the dependencies and the components handled in a more convenient way.</p><h3>Async testing</h3><p>There are many ways to test async functions with Jasmine, the most important are async with whenStable() and fakeAsync in conjunction with tick().</p><p>The first solution keeps the async logic for the test as seen in the example below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dfbea0b5bc6d035214a02a19e77972d9/href">https://medium.com/media/dfbea0b5bc6d035214a02a19e77972d9/href</a></iframe><p>The detectChanges() method is responsible to trigger bindings manually as it isn’t done by Angular when running unit tests (you would also need to manually fire lifecycle events, e.g. ngOnInit(), ngOnChanges() etc).</p><p>The other solution is to use fakeAsync() which allows us to write our code without callbacks as it was synchronous, by stopping the execution using the tick() method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb1985beb031e8827fad05aa7afbe389/href">https://medium.com/media/cb1985beb031e8827fad05aa7afbe389/href</a></iframe><p>The tick() function can take one parameter, which is the time in milliseconds to skip. However, this would be hard to keep track of, so you can call it without a parameter. In this case, it skips to the point when all pending async tasks are resolved 👍.</p><h4>Non-inline template &amp; CSS files</h4><p>As a rule of thumb, fakeAsync<strong>is preferred, unless your test involves XHR (XMLHttpRequest) requests</strong>. In case of Angular, this refers to the case, when you implement your template (HTML) and stylesheet (CSS) code in separate files instead of inlining it in the component and they need to be loaded. In this situation, you have to call the compileComponents() method, which results in the following changes in the TestBed configuration.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77703b2d243f3f26c9e5950e217a9f97/href">https://medium.com/media/77703b2d243f3f26c9e5950e217a9f97/href</a></iframe><p>The beforeEach() must be asynchronous as the compileComponents() call resolves the template and style files in an async fashion. This also means, that our initialization statements must be moved to the then() callback method to make sure the TestBed is configured properly before executing them.</p><blockquote><strong>To emphasize the previous statement, when using this XHR based TestBed initialisation, the </strong>fakeAsync<strong> test method can’t be used </strong><em>⚠️</em><strong>.</strong></blockquote><h3>Using mock objects to remove dependencies</h3><p>Sometimes you’ve got dependencies so complicated that it’s wiser to completely mock them instead of spying on their functions. By mocking an object, you can specify which methods will be accessible. These functions will lose their implementation, however, you can track whether they were invoked (the original implementation should be tested in the proper component though).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc2ba894c43cd86e230d8e60ac1a7616/href">https://medium.com/media/bc2ba894c43cd86e230d8e60ac1a7616/href</a></iframe><p>The example above shows how you can effortlessly construct a mock object with Jasmine, specify the available functions and substitute the original dependency. With this solution, your component’s code will execute without calling through the original function, but you can track whether that call was actually made.</p><h3>Stubs and schemas</h3><p>Mocking completely removes the component’s dependencies, however, in complex projects, you will probably have custom HTML directives, for example &lt;app-banner&gt;&lt;/app-banner&gt;. Your component should not be testing this, however, Angular would require you to declare it with its nested components and injected services. You probably don’t want to do that, so here are two solutions to assist you.</p><p>Firstly, you can create stubs for the custom directives, by overriding their selector with an empty (or a simpler) class definition. On the other hand, you can simply skip the stubs and assign a schema to the TestBed.</p><blockquote>The NO_ERRORS_SCHEMA bypasses every non-Angular directive and property, while CUSTOM_ELEMENTS_SCHEMA bypasses every element with a ‘-‘ in their name.</blockquote><p>The problem with <strong>schemas</strong> is that they <strong>can prevent the compiler from warning you about missing elements</strong> that you may have simply omitted or misspelled. For example, if you create an HTML input and assign a ngModel to it without importing the FormsModule, you will not get any errors during testing, while using the schema!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*NZaNH0SFe67HtTxKrPXkAg.png" /></figure><p>The following sample shows how you can adopt these two approaches in conjunction. It is a good practice to stub important elements, and use the schema to suppress warnings from the others. This is called shallow testing.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f25951e717f9a74f0e6ba8eec8d638b3/href">https://medium.com/media/f25951e717f9a74f0e6ba8eec8d638b3/href</a></iframe><p>There is much more to unit testing in Angular, but these core concepts should cover most scenarios. Hopefully, you are ready to dive into testing your own project now! 💪</p><p>iGaming is a fast-paced industry where you need to be at the top of your game. Ready to take on the challenge? Apply for a position with us: <a href="https://www.betssongroup.com/career/">betssongroup.com/career</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac2a9ab77016" width="1" height="1" alt=""><hr><p><a href="https://medium.com/betsson-group/a-comprehensive-guide-to-angular-unit-testing-ac2a9ab77016">A comprehensive guide to Angular unit testing</a> was originally published in <a href="https://medium.com/betsson-group">Betsson Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>