<?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: Add isolatedModules in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Add-isolatedModules/m-p/226861#M587</link>
    <description>&lt;P&gt;I'll let the team know about this and then we'll update the docs if necessary.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2023 13:59:37 GMT</pubDate>
    <dc:creator>imsingh</dc:creator>
    <dc:date>2023-10-27T13:59:37Z</dc:date>
    <item>
      <title>Add isolatedModules</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Add-isolatedModules/m-p/226674#M586</link>
      <description>&lt;P&gt;Right now documentation suggest fields like this in the jest.config:&amp;nbsp;&lt;A href="https://developer.dynatrace.com/develop/testing/unit-tests/#handling-style-imports" target="_self"&gt;link&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;transform&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;".(css|scss|sass|less)$"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;rootDir&amp;gt;/style-mock.ts"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I suggest to add another transform:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;"^.+&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;.(t|j)sx?$"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;"ts-jest"&lt;/SPAN&gt;&lt;SPAN&gt;, { &lt;/SPAN&gt;isolatedModules&lt;SPAN&gt;: true &lt;/SPAN&gt;&lt;SPAN&gt;}],&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It might sharply decrease the execution time of jest tests.&lt;BR /&gt;&lt;BR /&gt;In our case, this change reduces execution time from 20-40s* to 10s (34 test suites, 140 tests on Apple m1 chip)&lt;BR /&gt;&lt;BR /&gt;* 40s only in case when jest runs tests without starting from the slowest one. Usually it takes 20-25s&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 09:14:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Add-isolatedModules/m-p/226674#M586</guid>
      <dc:creator>beigert</dc:creator>
      <dc:date>2023-10-26T09:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add isolatedModules</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Add-isolatedModules/m-p/226861#M587</link>
      <description>&lt;P&gt;I'll let the team know about this and then we'll update the docs if necessary.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 13:59:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Add-isolatedModules/m-p/226861#M587</guid>
      <dc:creator>imsingh</dc:creator>
      <dc:date>2023-10-27T13:59:37Z</dc:date>
    </item>
  </channel>
</rss>

