* feat: use @babel/plugin-transform-runtime instead of regenerator-runtime
* fix async example
* add changelog
* add babel/core and babel-jest to all examples
* fix native async test
* chore: dedupe lockfile
* remove babel from native transform test
* add test for async regenerator
* docs: add react-testing-library example
* chore: rename test files to match comments in docs
* docs: show react-testing-library example first then enzyme
* chore: upgrade deps
* upgrade more packages
* upgrade micromatch
* use jest-junit as a reporter
* downgrade slash to 1.0.0 for now
* revert fbjs incompatible eslint plugins
* Revert eslint
* bring back eslint update because fbjs published new version:
* revert rn react upgrade
* update eslint-plugin-babel peerDep
* chore: bump deps
* remove snapshot that shouldn't be checked out
* include examples in workspaces
* mark examples as private
* move pretty-format dev deps to the package; remove enzyme from root pkg
* fix immutable entry
* Updating to use Babel env
Updating getting started
Updating enzyme to use babel 'env'
Updating jquery example to use babel 'env'
Updated manual_mocks example to use babel 'env'
Updated react test to use babel 'env'
Updated react-native to use babel 'env'
Update to use babel 'env'
Removed yarn.lock files
* * version
* * version
* * version
* * version
* Update .babelrc
* Use `vm.Script`.
* Rewrite basic coverage support in Jest.
* Move `vm.Script` creation and caching into `transform`.
* Copy all jest packages into example folders.
This ensures we are using the latest version of every package.
* Cache the wrapped code.
* Use babel-jest for Jest itself; update setup.
* Added a transform.js test.
* Relax jest.mock babel transform restrictions.
* Updated package.json and .npmignore for all packages.
* Make watch script resilient to deleted files.
Summary:
As discussed in reactiflux, I've updated the examples and docs so similarly named modules will no longer be un-mocked by mistake.
Closes https://github.com/facebook/jest/pull/989
Differential Revision: D3288337
fbshipit-source-id: 1cc1220506050ae6b4fece24690902052be4c89e
Summary:
Since modules are strict by default its a bit odd. super tiny nit.
Closes https://github.com/facebook/jest/pull/958
Differential Revision: D3240744
fb-gh-sync-id: a8e32b3c22cad7b04ea10ff282d4b5dbd33d21b2
fbshipit-source-id: a8e32b3c22cad7b04ea10ff282d4b5dbd33d21b2
Summary:We spend too much time reviewing minor nits and it increases turnaround time. This updates the eslint config to error on a few stylistic things and it is now aligned with the Jest code style.
This was also a good change (or well, I was forced :P ) to clean up the last of the cruft of the codebase :)
Closes https://github.com/facebook/jest/pull/892
Reviewed By: vjeux
Differential Revision: D3178752
fb-gh-sync-id: 7d1b759dffeca9374ecab39f7f031cf0da6832e3
fbshipit-source-id: 7d1b759dffeca9374ecab39f7f031cf0da6832e3
Summary:babel-jest is moving into jest as a package. This allows us to consolidate the codebase. Note that we are only re-using the npm package for babel-jest but the implementation actually changed as the `babel-preset-jest` is now being loaded automatically.
When `babel-jest` is installed in the project that jest is being run on, it will now automatically be loaded. See the `examples/react` folder – the only setup needed for babel to work is to enable the default presets (es2015 and react) and to `npm install babel-jest`. In this PR I also added the `setupFiles` config flag. There isn't really a reason to limit this to a single entry.
Closes https://github.com/facebook/jest/pull/757
Reviewed By: kentaromiura
Differential Revision: D2998065
fb-gh-sync-id: D2998065
shipit-source-id: D2998065
- in order to use 'babel-plugins-*' to parse the syntax, we can use
'babel-preset-*' packages that we have already installed.
for using 'babel-preset-*' packages you need to specify it in the
.babelrc file as "presets".
(Look here: https://babeljs.io/docs/plugins/#presets)
otherwise if you want to use 'plugins' and parse the syntax;
you have to install 'babel-plugin-*' packages.
(Look here: https://babeljs.io/docs/plugins/)
- 'export default *' changed to 'module.exports = *' due to
syntax error.