1. 17 Jan, 2018 2 commits
    • Ro Savage's avatar
      Add support for CSS Modules with explicit filename (#2285) · fc7c9915
      Ro Savage authored
      * Add css modules with [name].modules.css file convention
      
      * Add e2e for CSS Modules
      
      * Updated based on feedback
      
      * Change css modules class name to be deterministic and fix licences
      
      * Update css modules class naming convention
      fc7c9915
    • Jack Franklin's avatar
      Enhance Jest config error for `setupTestFrameworkScriptFile` (#3512) · 7969b48c
      Jack Franklin authored
      * Enhance Jest config error for `setupTestFrameworkScriptFile`
      
      I wasn't aware of the fact that users of c-r-a could just define
      `src/setupTests.js` and it would be configured with Jest - I nearly
      ejected before I found a GitHub issue that confirmed this functionality.
      
      I thought it might be a nice idea to add it to the error about Jest
      config overrides to stop others ejecting when they don't need to.
      
      * Change the order of Jest config errors.
      
      * Show different error for `setupTestFrameworkScriptFile`
      
      * Tweak the message
      7969b48c
  2. 15 Jan, 2018 2 commits
  3. 28 Oct, 2017 1 commit
  4. 26 Sep, 2017 1 commit
  5. 07 Jul, 2017 1 commit
    • Mostafa Hajizadeh's avatar
      Add "node" to Jest's moduleFileExtensions (#2738) · 16f0d4a5
      Mostafa Hajizadeh authored
      Jest's default value for this option is ["js", "json", "jsx", "node"].
      CRA's current value is ["web.js", "js", "json", "web.jsx", "jsx"], which
      is missing one of default ones: "node". This change fixes that.
      
      This "node" extension is used in packages that use native code.
      16f0d4a5
  6. 28 Jun, 2017 1 commit
  7. 16 May, 2017 2 commits
  8. 15 May, 2017 1 commit
  9. 08 May, 2017 1 commit
  10. 07 Mar, 2017 1 commit
  11. 06 Mar, 2017 1 commit
  12. 04 Mar, 2017 1 commit
    • Daniel Grant's avatar
      Modularise scripts (#1433) · b88d6655
      Daniel Grant authored
      * Refactor start script into modules
      
      * Move dev server config into config file
      
      * Replace eject file whitelist with a "remove-file-on-eject" flag
      
      * Move utils into scripts folder (for inclusion in ejection)
      
      * Add missed changes
      
      * Pass showInstructions as an argument
      
      * Fix eject bug
      
      * Don't eject babelTransform
      b88d6655
  13. 23 Dec, 2016 1 commit
  14. 18 Dec, 2016 1 commit
  15. 08 Dec, 2016 1 commit
  16. 07 Dec, 2016 1 commit
    • Dan Abramov's avatar
      Let Jest handle all file types (#1197) · 5456ffff
      Dan Abramov authored
      * Let Jest handle all file types
      
      * Update regexes
      
      * Fix exclusion regex to also exclude files without extension
      * Be over-cautious with Windows paths because I'm not sure how Jest handles them
      
      * There is no automatic babel-jest discovery now that we use transsform
      5456ffff
  17. 05 Dec, 2016 1 commit
    • Stephen John Sorensen's avatar
      Add testURL to jest config (#1120) · aaa615f6
      Stephen John Sorensen authored
      In my tests, jsdom was throwing a "SecurityError" at HistoryImpl._sharedPushAndReplaceState (node_modules/react-scripts/node_modules/jsdom/lib/jsdom/living/window/History-impl.js:87:15)
      
      This happens because document.URL defaults to "about:blank". Unfortunately, if you interact with the History object it tries and fails to parse the URL, causing a "SecurityError" to be thrown. Setting the default URL to "http://localhost" fixes this issue.
      aaa615f6
  18. 04 Dec, 2016 1 commit
    • Ville Immonen's avatar
      Revert Jest moduleNameMapper regex back to a whitelist (#1149) · 715de0de
      Ville Immonen authored
      Jest matches moduleNameMapper regexes with module names, not the full
      file path, so the negative lookahead doesn’t work for filtering out
      JS files, because they can be imported without the extension. So paths
      like `lodash.assign` and `../utils/range` were mislabeled as resources
      with unknown file extensions because they have a dot in the name.
      
      As a stopgap measure, revert the moduleNameMapper regex added in #1077.
      715de0de
  19. 21 Nov, 2016 2 commits
  20. 28 Oct, 2016 2 commits
  21. 11 Oct, 2016 1 commit
  22. 05 Oct, 2016 1 commit
  23. 23 Sep, 2016 1 commit
  24. 22 Sep, 2016 1 commit
  25. 19 Sep, 2016 1 commit
  26. 18 Sep, 2016 1 commit
  27. 17 Sep, 2016 1 commit
  28. 11 Sep, 2016 1 commit
  29. 10 Sep, 2016 1 commit
  30. 03 Sep, 2016 1 commit
  31. 02 Sep, 2016 2 commits
  32. 01 Sep, 2016 1 commit
    • Dan Abramov's avatar
      Update Jest (#530) · 67fe7592
      Dan Abramov authored
      * Update Jest
      
      * Remove default snapshot test
      
      * Fix a few things
      
      * Add a simple default test
      
      * App.spec.js -> App.test.js
      
      * Fix e2e test
      
      * Bump Jest
      67fe7592
  33. 23 Aug, 2016 1 commit
  34. 18 Aug, 2016 1 commit