title: Check array equality with Jest
body: <p>I've got a method inside the file test.ts: </p>
  
  <pre><code>public async listComponentsDiffer(lastTag: string, workDir: string): Promise&lt;any[]&gt; 
  </code></pre>
  
  <p>This method return me a array like this : </p>
  
  <pre><code>[{ components: "toto", newVersion: "2", oldVersion: "1" }]
  </code></pre>
  
  <p>I'm trying to use Jest and I'm doing this for check this method:</p>
  
  <pre><code>test("correct array form", () =&gt; {
      // Given
      const lastag = "";
      const workDir = ".";
  
      // When
      const result = ComponentsService.listComponentsDiffer(lastag, workDir);
  
      // Then
      const expected = [{ components: "toto", newVersion: "2", oldVersion: "1" }];
      expect(result).toBe(expected);
  });
  </code></pre>
  
  <p>But I've got thsi error : </p>
  
  <pre><code>TypeError: test_1.test.listComponentsDiffer is not a function Jest
  </code></pre>
  
  <p>How can I do my test ?</p>