* 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
* 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
* Remove 'use strict' from all files
* 'use strict' removed from pacakges' sources
* Strict mode is now enabled automatically by babel
* 'use strict' check removed from dangerfile
* Updated contributing guidelines
* Enable @flow for most files
* Commit yarn.lock
* Revert removal of "use strict" in test and mock files
* Improve annotations for ReportDispatcher
* Replace "void 0" with "undefined"
* Update babel-plugin-transform-strict-mode to match transitive deps
* 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
* Support mocking native AsyncFunction
* Add native-async-mock example test
* Use strict
* Return a promise from mock
* Only test async
* Revert returning promise
Summary:
to review: `jest-utils/jasmine-pit` and `__integration_tests_/promise_it/**`
It does not work with jasmine1 yet. If the direction is ok i'll add jasmine1 support to this PR.
Closes https://github.com/facebook/jest/pull/970
Reviewed By: dmitriiabramov
Differential Revision: D3309064
fbshipit-source-id: ff597945554e8cad4f2add8232236429810a966c
Summary:
I test many times,seems there isnt a suitable way to use Jasmine's `toThrow style` to test `async error`.
So i add some codes to illustrate using standard javascript style to test async error .
Do there have a `toThrow` version test ? I can not make a suitable `toThrow` test. if there is,should add both of those illustration codes.
Closes https://github.com/facebook/jest/pull/903
Differential Revision: D3229173
fb-gh-sync-id: b2540733d83c3bc2c1438936519c656c86c35ea9
fbshipit-source-id: b2540733d83c3bc2c1438936519c656c86c35ea9
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