title: Jest with Angular8 and Node 13 Segmentation fault
body: <p>I've been following <a href="https://medium.com/angular-in-depth/angular-cli-ng-test-with-jest-in-3-minutes-v2-1060ddd7908d" rel="nofollow noreferrer">Angular CLI: “ng test” with Jest in 3 minutes (v2)</a> tutorial to set up jest tests with Angular 8. </p>
  
  <p>My test fails on node 13 with Segmentation fault, but passes on node 12</p>
  
  <p>The test is very simple:</p>
  
  <pre><code>import {TestBed} from '@angular/core/testing';
  import {HttpService} from './http.service';
  
  describe('HttpService', () =&gt; {
    let service: HttpService;
  
    beforeEach(() =&gt; {
      TestBed.configureTestingModule({
        imports: [
        ],
        providers: [
        ]
      });
  
      service = TestBed.get(HttpService);
    });
  
    it('should be created1', () =&gt; {
      expect(service).toBeTruthy();
    });
  
    it('should be created2', () =&gt; {
      expect(service).toBeTruthy();
    });
  
    it('should be created3', () =&gt; {
      expect(service).toBeTruthy();
    });
  
    it('should be created4', () =&gt; {
      expect(service).toBeTruthy();
    });
  
    it('should be created5', () =&gt; {
      expect(service).toBeTruthy();
    });
  
    it('should be created6', () =&gt; {
      expect(service).toBeTruthy();
    });
  
    it('should be created7', () =&gt; {
      expect(service).toBeTruthy();
    });
  });
  
  </code></pre>
  
  <p>Class under tests:</p>
  
  <pre><code>import {Injectable} from '@angular/core';
  
  @Injectable({
    providedIn: 'root'
  })
  export class HttpService {
  }
  
  </code></pre>
  
  <p>I also noticed that the test passes if there are 5 or less test cases, and always fails on the 6th test.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I checked that:</p>
  
  <ul>
  <li>node 13.1 works fine, the problem appears only on 13.2.</li>
  <li>same tests work perfectly fine on karma/jasmine</li>
  </ul>
  
  <p>Here is <a href="https://github.com/lesiak/node13-angular-jest/commit/beec00272208404ce9c490d6d4dab40fbb9e6125/checks?check_suite_id=334253246" rel="nofollow noreferrer">Github Workflow showing the issue</a>, with all 3 node versions in the test matrix.</p>
  
  <p>Any idea how to fix this problem?</p>