1. 03 Feb, 2018 1 commit
  2. 01 Feb, 2018 1 commit
    • bradfordlemley's avatar
      Add support for yarn and lerna monorepos. (#3741) · b43ad04b
      bradfordlemley authored
      * Support for multiple source paths via package.json srcPaths entry.
      
      Initial support for yarn workspace.
      
      Support lerna workspace, fix for when to use template files.
      
      Remove support for specifying srcPaths in package.json.
      
      Re-enable transpilation caching.
      
      * Clean up, use file matching (similar to original) in webpack configs instead of matching function.
      
      * Remove package lock files.
      
      * Fix for eject.
      Note: monorepos won't work after eject.
      Can be fixed easily with JEST 22.0.?+ which has file pattern matches against realpaths.
      
      * Filter tests to run only tests in monorepo components included by the app.
      (Not sure this is desireable, might be cool to be able to easily run all tests in monorepo from one app.)
      
      * Fix conditions for when to use template.
      
      * Fix eject.
      
      * Remove code that is not needed w/ Jest 22.
      
      * Include all cra-comp tests in monorepo instead of trying to include only tests that are dependencies of app.
      (tests can be easily filtered via jest cli if desired, e.g. 'npm test -- myapp comp1')
      
      * Pin find-pkg version.
      
      * Hopefully fix jest test file matching on windows by removing first slash.
      
      * E2E tests for monorepo.
      
      * Run monorepo tests in CI.
      
      * Fix and test post-eject build.
      
      * Fix e2e test.
      
      * Fix test suite names in appveyor.
      
      * Include individual package dirs as srcPaths instead of top-level monorepo root.
      Fixes build/start after eject.
      
      * Fix running tests after eject.
      
      * Clean up test workspace, add some verifcations.
      
      * Cleanup.
      
      * Try to fix hang when running test on appveyor.
      
      * Don't write babel or lint config to package.json when ejecting.
      
      * Incorporate review comments.
      * Simply monorepo pkg finder
      * Only include monorepo pkgs if app itself is included in monorepo
      * Check for specific tests in e2e
      
      * Fixes for windows.
      
      * Fix for kitchensink mocha tests compiling.
      
      * Add lerna monorepo test.
      
      * Fix lerna bootstrap on windows.
      
      * Incorporate more review comments:
      * remove support for lerna w/o yarn workspace
      * add react and react-dom as devDeps to comp1 and comp2
      
      * Add monorepo info to user guide.
      b43ad04b
  3. 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
  4. 15 Jan, 2018 2 commits
  5. 28 Oct, 2017 1 commit
  6. 26 Sep, 2017 1 commit
  7. 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
  8. 28 Jun, 2017 1 commit
  9. 16 May, 2017 2 commits
  10. 15 May, 2017 1 commit
  11. 08 May, 2017 1 commit
  12. 07 Mar, 2017 1 commit
  13. 06 Mar, 2017 1 commit
  14. 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
  15. 23 Dec, 2016 1 commit
  16. 18 Dec, 2016 1 commit
  17. 08 Dec, 2016 1 commit
  18. 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
  19. 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
  20. 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
  21. 21 Nov, 2016 2 commits
  22. 28 Oct, 2016 2 commits
  23. 11 Oct, 2016 1 commit
  24. 05 Oct, 2016 1 commit
  25. 23 Sep, 2016 1 commit
  26. 22 Sep, 2016 1 commit
  27. 19 Sep, 2016 1 commit
  28. 18 Sep, 2016 1 commit
  29. 17 Sep, 2016 1 commit
  30. 11 Sep, 2016 1 commit
  31. 10 Sep, 2016 1 commit
  32. 03 Sep, 2016 1 commit
  33. 02 Sep, 2016 2 commits
  34. 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