<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic unit testing on custom widgets using Jest framework in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unit-testing-on-custom-widgets-using-jest/m-p/754382#M726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to write unit testing on my custom widgets using Jest framework.my custom widget consumes dojo,esri libraries.for example 'esri/tasks/query','esri/tasks/QueryTask', 'dojo/promise/all','dojo/when','dojo/Deferred' etc.&lt;BR /&gt;my first question is, is it possible to do custom widget unit testing with Jest framework? if so, can you please send me a basic jest sample? any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2020 10:25:57 GMT</pubDate>
    <dc:creator>sandhyabaratam</dc:creator>
    <dc:date>2020-03-16T10:25:57Z</dc:date>
    <item>
      <title>unit testing on custom widgets using Jest framework</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unit-testing-on-custom-widgets-using-jest/m-p/754382#M726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to write unit testing on my custom widgets using Jest framework.my custom widget consumes dojo,esri libraries.for example 'esri/tasks/query','esri/tasks/QueryTask', 'dojo/promise/all','dojo/when','dojo/Deferred' etc.&lt;BR /&gt;my first question is, is it possible to do custom widget unit testing with Jest framework? if so, can you please send me a basic jest sample? any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 10:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unit-testing-on-custom-widgets-using-jest/m-p/754382#M726</guid>
      <dc:creator>sandhyabaratam</dc:creator>
      <dc:date>2020-03-16T10:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: unit testing on custom widgets using Jest framework</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unit-testing-on-custom-widgets-using-jest/m-p/754383#M727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Here is my update on this topic.&lt;/P&gt;&lt;P&gt;I have pulled the functions out of define by passing all required params as arguments. started writing unit tests in jest by mocking the libs/objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2020 15:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unit-testing-on-custom-widgets-using-jest/m-p/754383#M727</guid>
      <dc:creator>sandhyabaratam</dc:creator>
      <dc:date>2020-10-08T15:23:51Z</dc:date>
    </item>
  </channel>
</rss>

