* add markdown plugin in eslint
* add lint-docs build step
* lint JavaScript file
* final lint-docs command
* lint ExpectAPI
* lint GettingStarted.md
* lint GlobalAPI
* lint GlobalAPI
* lint JestObjectAPI
* lint Webpack.md
* lint UsingMatchers.md in docs
* lint TutorialReactNative.md in docs
* lint TutorialReact.md in docs
* lint docs file
* add lint-docs to test-ci script
* add lint-docs script to test & test-ci
* turn off more rules to lint-docs in package.json
* remove lint-docs from test and test-ci
* add lint-docs to test script in package.json
* remove lint-docs script from circle.yml
* add lint-docs script to test-ci in package.json
* rename js codeblock with json appropriately
* remove unnecessary log files
* remove lint-docs from test-ci
test script already includes lint-docs,
it'll be reduntant to do the same for more than one node versions
* remove error.log file
* use eslintrc-docs.json for overriding
* remove eslint comments from docs
Removing eslint comments from docs and moving them to
top level in .eslintrc-docs.json
* add lint-docs in correct order to test-ci and test
New look and feel. Updated all tutorials, docs, guides with latest best practices.
* Cleaned up API Reference docs (#2422)
* Reorganized Sidebar Navigation
* New Introduction Section (#2425)
* Simplified Getting Started introduction
* Break up API Reference into multiple docs, separate from Guides (#2388)
* Support is now Help (#2370)
* Add "Snapshot Testing", "Testing Asynchronous Code" & "Setup and Teardown" docs (#2419, #2406)
* Create Jest user showcase (#2369)
* New blog post announcing refreshed documentation (#2522)
* Truncate blog posts in blog index
* New homepage hero (#2662)
* New mobile nav (#2664)
* Add standard FB Open Source Footer (#2660)
* Add RedirectLayout to prevent broken links (#2700)
* Refreshed Homepage and Colors across site (#2699)
* Deploy Jest website via CircleCI
* Added `transform` and `transformIgnorePatterns` to `jest-config`.
* Let `jest-runtime` use the `transform` config option
* Updated test setup and a snapshot
* Updated typescript example
* Added an unit test for custom css preprocessor
* Integration test using multiple transformers
* Modified `jest-repl` to support `transform`
* Added a warning in `jest-config` and legacy support for scriptPreprocessor
* Modified error message in `jest-runtime`
* Updated documentation
* fixed windows build
This would confuse the reader as both code blocks show same file name.
As the test file calls the correct file name but the name is wrong in react component file name, it results in confusion.
* Add preset option and experimental jest-react-native project.
* Import react-native example.
* Add react-native JS examples.
* Update test runner for the react-native-example.
* Use the mocks provided by react-native.
* Preset updates.
* Skip react-native example on Node 4.
* Update Changelog.
* Add react-native tutorial, update react tutorial, add blog post.
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:Discussion: https://www.facebook.com/groups/reactnativeoss/permalink/1528961550733807/
I would like `babel-jest` and `jest`'s setup process to be simpler. It turns out that react-native plugin developers commonly ship plugins without precompiling them with babel, leaving it to react native's packager.
This changes the `preprocessorIgnorePathPatterns` config option to default to `['/node_modules/']` or an empty array when react-native is detected as part of the project. Further, I removed the `node_modules` check in babel-jest, because the preprocessor is now not called when the file is a node_module. This has the nice side-effect of *not* copying every single node_module JS file into the cache and the files will now be read from the cache directly! For users of babel-jest, nothing will change. For people using react-native, they'll now be able to use `babel-jest` directly. For people who do not use a preprocessor, this change doesn't have an effect either. It does however change Jest for people who use
Closes https://github.com/facebook/jest/pull/779
Reviewed By: yungsters
Differential Revision: D3025485
fb-gh-sync-id: 56254634383d28cd9952adcfb0081ab9ec4f0fa6
shipit-source-id: 56254634383d28cd9952adcfb0081ab9ec4f0fa6
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
Summary: Update the documentation of the React example, restructe the text a
bit and add some additional information.
Fixes#568.
Closes https://github.com/facebook/jest/pull/570
Reviewed By: svcscm
Differential Revision: D2576758
fb-gh-sync-id: 452354debcf266f57b39d703895b8d9a7af0fb7b