Commit Graph

8 Commits

Author SHA1 Message Date
Paul O’Shannessy 6d2632adae
Update copyrights with Meta Platforms, restore original license in Jasmine fork (#13879) 2023-02-09 08:13:08 +01:00
Simen Bekkhus a20bd2c31e
chore: activate `prefer-template` eslint rule (#12513) 2022-02-28 11:31:57 +01:00
mpontus 9b157c3a7c Audit @flow and "use strict" (#3451)
* 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
2017-05-12 11:01:23 +01:00
Christoph Pojer cd8976ec50 Enable sort-keys. (#2085) 2016-11-14 17:01:33 +09:00
Raymond Zhou 07168315fd Rename `tutorial` folder to `jquery`.
Summary:
For https://github.com/facebook/jest/pull/1094#issuecomment-223046579
Closes https://github.com/facebook/jest/pull/1098

Differential Revision: D3372687

fbshipit-source-id: 6d969ac09d4f16e5c94261f96410e303dda55d25
2016-06-01 11:45:51 -07:00
cpojer 81d6697617 New documentation and updated website and examples.
Summary:This gets Jest ready for 0.9.0.

What's new?
* Slightly refreshed look, based on the Relay website.
* New summary of what Jest is on the website.
* New Getting Started guide, with babel support and key feature explanation.
* Added a troubleshooting section.
* Updated all examples in the documentation.
* Added all new APIs to the API docs, updated everything to use `jest.fn()` instead of `jest.genMockFn()`.
* Removed the webpack alias and coffeescript guides. Neither of them are really supported or useful at this point. We can bring back a guide later on proper webpack integration if someone in the community takes this on. The webpack-alias feature is handled by the `moduleNameMapper` API.
* Added a link to the `Failed to get metadata` error in Jest.

See http://cpojer.github.io/jest/ for a preview.

In a follow-up I'll add a section on async testing for Promises and some more info about automocking.
Closes https://github.com/facebook/jest/pull/763

Reviewed By: yungsters

Differential Revision: D3005361

fb-gh-sync-id: f8e634cf4a311764f311f8b5849781b53975e686
shipit-source-id: f8e634cf4a311764f311f8b5849781b53975e686
2016-03-03 14:20:34 -08:00
cpojer 741f4a8de1 Cleanup and update examples in preparation for 0.9.0. 2016-02-25 17:14:18 +09:00
jeffmo 88a94d5d1b FIRST! 2014-05-14 09:42:01 -07:00