<?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 Re: Testing ArcGIS for Javacript React components using Jest in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1095309#M74549</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/479507"&gt;@craragon77&lt;/a&gt;&amp;nbsp;okay, it's failing on calcite-components, did you add those recently? Those are not part of&amp;nbsp;@arcgis/core. My best guess is you'll need to ignore those as well.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 14:38:20 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2021-09-03T14:38:20Z</dc:date>
    <item>
      <title>Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1077252#M73789</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I'm encountering a weird error when I try to use Jest to test my react components which contain ArcGIS maps. I'm attempting to make a simple smoke screen test for a component which contain an ArcGIS map, but I always get this error from Jest saying "Jest encountered an unexpected token", meaning that Jest cannot read it. This error appears in every component with the arcGIS map in its ancestry. For example, I am getting an instance of the error from the App component because it's importing a child component which itself hosts an arcGIS map. I understand that ArcGIS uses Intern for its testing, but I'm not trying to test the source code, just the React components (which I wrote) where the ArcGIS maps live. I am using React 17.0.1, and I am using the @arcgis/core package (version 14.8.1) to make the maps. Can I get a second set of eyes on this? It's really T-Boning my tests&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-07-09 at 10.36.01 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18093i0B035DDE15B10A73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-07-09 at 10.36.01 AM.png" alt="Screen Shot 2021-07-09 at 10.36.01 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:42:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1077252#M73789</guid>
      <dc:creator>craragon77</dc:creator>
      <dc:date>2021-07-09T14:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1077258#M73792</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/479507"&gt;@craragon77&lt;/a&gt;&amp;nbsp;Try setting jest to ignore the&amp;nbsp;@arcgis/core modules, for example:&amp;nbsp;&lt;A href="https://github.com/andygup/angular-jsapi-jest/blob/main/jest.config.js#L4" target="_blank"&gt;https://github.com/andygup/angular-jsapi-jest/blob/main/jest.config.js#L4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1077258#M73792</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-07-09T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1077350#M73798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;, that worked like a chart. I attached a jest object to the package.json file and pasted the content from the link you send into it. Thanks a bunch&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:10:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1077350#M73798</guid>
      <dc:creator>craragon77</dc:creator>
      <dc:date>2021-07-09T17:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1093730#M74478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;so the solution that you posed worked really well until today when I started seeing the same error again, but this time in the parent component instead of the components where the arcGIS elements live. I have snippet you posted earlier, but am I missing anything else? The testing framework is the same as before, which I have described above.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-08-30 at 2.41.37 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22030i42B92E640F67F726/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-08-30 at 2.41.37 PM.png" alt="Screen Shot 2021-08-30 at 2.41.37 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 18:47:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1093730#M74478</guid>
      <dc:creator>craragon77</dc:creator>
      <dc:date>2021-08-30T18:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1095309#M74549</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/479507"&gt;@craragon77&lt;/a&gt;&amp;nbsp;okay, it's failing on calcite-components, did you add those recently? Those are not part of&amp;nbsp;@arcgis/core. My best guess is you'll need to ignore those as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 14:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1095309#M74549</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-09-03T14:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1098491#M74677</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;what needs to be added to the jest config file to enable ignoring calcite-components? is there an example you can point me to?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 15:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1098491#M74677</guid>
      <dc:creator>craragon77</dc:creator>
      <dc:date>2021-09-15T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1098614#M74681</link>
      <description>&lt;P&gt;I'm guessing you'll need to add a regex check to this line for @esri, following a pattern similar to what I did for @arcgis: &lt;A href="https://github.com/andygup/angular-jsapi-jest/blob/main/jest.config.js#L4" target="_blank"&gt;https://github.com/andygup/angular-jsapi-jest/blob/main/jest.config.js#L4.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 18:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1098614#M74681</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-09-15T18:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1100272#M74729</link>
      <description>&lt;P&gt;hmm, this is interesting. i'm trying to figure out how to enable jest to ignore esri and arcgis components. I attached this (see below) to the config file but i'm still getting the same error listed above (can't run test cause Jest encountered an unexpected token). I've also tried using other arguments in the config file, such as&amp;nbsp;modulePathIgnorePatterns, but that breaks the testing framework because apps made with 'create react app' cannot use it (see screenshot). I think the issue will resolve itself once we can enable the testing framework to ignore the arcgis + esri node modules, but I can't figure out how to do it. got any tips?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"transformIgnorePatterns": [
      "node_modules/(?!@arcgis)",
      "node_modules/(?!@esri)"
    ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-09-21 at 9.37.27 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/23457iCE34FEBF8D6FDA1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-09-21 at 9.37.27 AM.png" alt="Screen Shot 2021-09-21 at 9.37.27 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1100272#M74729</guid>
      <dc:creator>craragon77</dc:creator>
      <dc:date>2021-09-21T13:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1100334#M74732</link>
      <description>&lt;P&gt;Hi Chris, interesting indeed. The only other thing I can think of would be looking into your babel config. Here's what I have &lt;A href="https://github.com/andygup/angular-jsapi-jest/blob/main/babel.config.js" target="_blank"&gt;https://github.com/andygup/angular-jsapi-jest/blob/main/babel.config.js&lt;/A&gt;. Maybe double check what's correct for React.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:15:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1100334#M74732</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-09-21T15:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1121199#M75434</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you find a solution ? I have the same problem :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jest_error.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28513i52C6F8DEDFC9C0FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="jest_error.PNG" alt="jest_error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using the latest 4.21 version of the API. For the unit test, I'm using Jest with the ts-jest preset.&lt;BR /&gt;Here is my jest config :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"jest": {
    "preset": "ts-jest",
    "roots": [
      "&amp;lt;rootDir&amp;gt;/src"
    ],
    "testMatch": [
      "**/__tests__/**/*.+(ts|tsx|js)",
      "**/?(*.)+(spec|test).+(ts|tsx|js)"
    ],
    "transform": {
      "^.+\\.(ts|tsx)$": "ts-jest"
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the proposed solution above with the parameters "transformIgnorePatterns" but I still got the same error.&lt;/P&gt;&lt;P&gt;Any clues ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 12:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1121199#M75434</guid>
      <dc:creator>MatthieuBrisset</dc:creator>
      <dc:date>2021-11-30T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1122266#M75464</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/13749"&gt;@MatthieuBrisset&lt;/a&gt;can you provide a simple github repo? That will be the easiest way to troubleshoot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cc @Anonymous User&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 17:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1122266#M75464</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-12-02T17:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1122950#M75483</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;Here is a minimal application with our full Webpack and Jest config and which reproduces the error.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/mattoche/arcgis-unit-testing" target="_blank" rel="noopener"&gt;https://github.com/mattoche/arcgis-unit-testing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1122950#M75483</guid>
      <dc:creator>MatthieuBrisset</dc:creator>
      <dc:date>2021-12-06T15:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123216#M75490</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/13749"&gt;@MatthieuBrisset&lt;/a&gt;&amp;nbsp; your repo doesn't seem to have jest.config.js and babel.config.js? There are also a bunch of dependencies in there that may/may-not affect something. One recommendation is use one of our repos as a starting point because they have minimal dependencies: &lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 00:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123216#M75490</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-12-07T00:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123268#M75491</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;The babel and jest configuration are embedded in the package.json (search for tag "babel" and "jest")&lt;/P&gt;&lt;P&gt;This repo &lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/webpack" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/webpack&lt;/A&gt; has been used to initialize the projet but we add bunch of dependencies since (linter, prettier, minifier, etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 09:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123268#M75491</guid>
      <dc:creator>MatthieuBrisset</dc:creator>
      <dc:date>2021-12-07T09:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123731#M75514</link>
      <description>&lt;P&gt;I face the same problem with version 4.21 and Angular 12.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 10:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123731#M75514</guid>
      <dc:creator>EmreCan</dc:creator>
      <dc:date>2021-12-08T10:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123850#M75517</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/56185"&gt;@EmreCan&lt;/a&gt;here's an example for Angular 11 + Jest: &lt;A href="https://github.com/andygup/angular-jsapi-jest" target="_blank"&gt;https://github.com/andygup/angular-jsapi-jest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 15:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123850#M75517</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-12-08T15:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123996#M75524</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp; I cloned the repo and tried again but I'm getting the same error "Cannot use import statement outside a module".&lt;BR /&gt;Can u please test it again?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1123996#M75524</guid>
      <dc:creator>EmreCan</dc:creator>
      <dc:date>2021-12-08T19:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1124427#M75541</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/56185"&gt;@EmreCan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/13749"&gt;@MatthieuBrisset&lt;/a&gt;&amp;nbsp;Ah yes, I blew away my old node_modules and package-lock. When I reinstalled I see the problem, a dependency update changed something and I'm not sure why it doesn't work now. It will take some time to research. Hopefully it's just a configuration issue.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 16:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1124427#M75541</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-12-09T16:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1125256#M75569</link>
      <description>&lt;P&gt;This worked for me in my jest.config.js:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  "transform": {
    "^.+\\.(js|jsx|ts|tsx)?$": "ts-jest"
  },
  "transformIgnorePatterns": [
    "node_modules/(?!(@arcgis|@esri|@stencil)/)"
  ],&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added allowJS: true to my tsconfig file and just allowed ts-jest to transform everything rather than adding babel in.&lt;/P&gt;&lt;P&gt;This is the sample codebase &amp;gt;&amp;nbsp;&lt;A href="https://github.com/defiantgoat/esri-react-typescript" target="_blank"&gt;https://github.com/defiantgoat/esri-react-typescript&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Dec 2021 23:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1125256#M75569</guid>
      <dc:creator>defiantgoat</dc:creator>
      <dc:date>2021-12-12T23:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ArcGIS for Javacript React components using Jest</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1125351#M75572</link>
      <description>&lt;P&gt;Thanks !!!&lt;BR /&gt;It works as expected by adding allowJS : true.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 10:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/testing-arcgis-for-javacript-react-components/m-p/1125351#M75572</guid>
      <dc:creator>MatthieuBrisset</dc:creator>
      <dc:date>2021-12-13T10:34:41Z</dc:date>
    </item>
  </channel>
</rss>

