title: How to run OS-agnostic Jest test files that check paths?
body: <p>Let's say I have the following:</p>
  <pre><code>expect(func).toHaveBeenCalledWith('/path/to/file');
  </code></pre>
  <p>This would work fine on NIX operating systems. However, this test would fail on Windows platform because I should instead have</p>
  <pre><code>expect(func).toHaveBeenCalledWith('\path\to\file');
  </code></pre>
  <p>What's the best way to write tests so they are OS agnostic? I was looking at this <a href="https://medium.com/doctolib/how-to-run-the-same-jest-test-suite-across-several-platforms-jest-os-detection-plugin-included-f8113832482b" rel="nofollow noreferrer">article</a> but that is basically saying write different tests for different OSes.</p>