Commit Graph

22 Commits

Author SHA1 Message Date
Mostafa Hajizadeh
31e3ffea78 Add "node" to Jest's moduleFileExtensions (#2738)
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.
2017-09-09 22:25:19 +02:00
William Monk
7014aeddda Fix Code Review 2017-08-07 16:20:05 +02:00
Evan Jones
e8e2926e87 Better React Native Web support (#2511)
* Better React Native Web support

* Adding better react-native-web support for jest testing
2017-08-07 16:16:16 +02:00
nicolaserny
e1224ed94b Add tsconfig.test.json (instead of using deprecated TS_CONFIG) 2017-07-25 09:24:44 +02:00
nicolaserny
5028178683 Fix tests 2017-07-24 15:44:14 +02:00
DorianGrey
6fa3b6ae49 Use ts-jest instead of custom solution for transforming ts files. 2017-07-13 08:21:20 +02:00
Jan-André Zinser
106599d23f Fix code-coverage reports for ts/tsx 2017-06-23 12:12:52 +02:00
William Monk
6fcb0143a4 Merge pull request #82 from zinserjan/fix-tsx-extension
Fix transform ignore pattern for tsx
2017-06-13 22:38:52 +01:00
Jan-André Zinser
ad6144942f Fix transform ignore pattern for tsx 2017-06-07 21:27:56 +02:00
Matthew Leffler
5589c0c2e4 Allow loading modules from json files
This adds supports for such packages as:

- [`babel-core`](https://github.com/babel/babel/blob/7ca8170/packages/babel-core/src/index.js#L5)
- [`normalize-package-data`](d8a6a0c17c/lib/fixer.js (L8))
2017-06-06 14:00:40 -06:00
Thomas Gish
712d6dbb61 Fix setupTests extension 2017-05-22 12:51:09 -07:00
William Monk
b9b585f147 Fix jest tests 2017-05-22 15:15:37 +01:00
Ryan Sullivan
10a180be9b Make coverage and snapshot Jest options overridable in package.json (#1830)
* Override Jest config collectCoverageFrom with package.json

* Protect against overriding other options

* Better error message

* Create Jest config early on eject

* Tweak wording

* Dry it up
2017-05-16 05:13:19 +01:00
Tom Dunlap
c5e5eb5e33 Only run tests in <rootDir>/src (#544) (#1808)
* Only run tests in <rootDir>/src (#544)

* updates Jest to 19.0.2

* removes testPathIgnorePatterns from jest config

* adds testMatch to jest config to only match files in src

* Bump babel-jest to 19.0.0 to match jest 19.0.2
2017-05-15 19:46:18 -05:00
Rogelio Guzman
71e0960476 Update to Jest 19 (#1614)
* Upgrade to Jest 19

* Use testMatch

* Correct version
2017-05-15 14:35:18 -04:00
Jeremy Morrell
94149c77a8 Ignore the yarn cache directory (#2063) 2017-05-08 15:05:49 +01:00
Valerii Sorokobatko
fe7b5c212b update to modern code style (#1738)
* mv create-react-app/index.js -> create-react-app/creteReactApp.js

* update to modern code style

* var -> cosnt

* set trailing-coma to es5 for prettier
2017-03-07 19:46:10 +00:00
Dan Abramov
1bfd5dafdf Fix internal linting setup and add missing headers (#1741) 2017-03-06 14:20:29 +00:00
Daniel Grant
b88d6655eb Modularise scripts (#1433)
* 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
2017-03-03 22:05:07 -05:00
Dan Abramov
e5bf5af296 Extract some utilities into a separate package (#723)
* Extract some utilities into a separate package

* Add utils dir to `files` in package.json

* Do not create an empty `utils` dir on eject
2016-09-23 20:53:08 +01:00
Dan Abramov
ba34b0b79b Eject .babelrc instead of separate configs (#705)
Fixes #410, #674
2016-09-23 00:33:14 +01:00
Ville Immonen
26464096d5 Set up a monorepo with Lerna 2016-09-19 10:52:19 +03:00