Skip to content
Snippets Groups Projects
  1. Nov 03, 2017
  2. Nov 02, 2017
  3. Oct 18, 2017
  4. Oct 17, 2017
  5. Oct 14, 2017
  6. Oct 13, 2017
  7. Oct 12, 2017
  8. Oct 11, 2017
  9. Oct 06, 2017
  10. Oct 05, 2017
  11. Oct 04, 2017
  12. Oct 02, 2017
  13. Sep 26, 2017
  14. Sep 21, 2017
  15. Sep 20, 2017
  16. Sep 19, 2017
    • Christopher Willis-Ford's avatar
      Allow either slash in path passed to Jest · 7809e947
      Christopher Willis-Ford authored
      Jest takes an argument to specify which tests should be run. The
      argument is treated as a regular expression and matched against the
      filenames of potential tests. Unfortunately Jest does not normalize path
      separators to forward slashes when running this comparison, so (for
      example) `tests/unit` doesn't match anything on Windows.
      
      This change replaces the forward slash in Jest arguments with `[\\\\/]`.
      
      Ideally, that should just be `[\\/]` -- escaping the backslash so that
      it survives NPM's JSON parsing -- but unfortunately the Windows version
      of Jest parses its command line arguments differently from other
      platforms. Specifically, the Windows version of Jest processes
      backslashes one extra time. Fortunately having a redundant backslash is
      OK on Mac and Linux, so `[\\\\/]` ends up working on all platforms.
      7809e947
  17. Sep 18, 2017
  18. Sep 14, 2017
  19. Sep 06, 2017
  20. Sep 05, 2017
Loading