51 Commits
Author SHA1 Message Date
5ab80f3aa1 chore: update React Native testing example project (#15832)
Co-authored-by: Christoph Nakazawa <[email protected]>
2025-09-26 23:17:08 +09:00
Nicolas CharpentierandGitHub bfcdfe0571 docs: update transformIgnorePatterns example for React Native (#15560) 2025-05-22 17:12:15 +09:00
Frazer SmithandGitHub 757cc13538 chore: update jest repo organisation in urls (#14413) 2023-08-15 15:00:44 +02:00
42bec01d37 docs: React Native tutorial admonitions (#13308)
Co-authored-by: Tom Mrazauskas <[email protected]>
2022-09-28 08:50:50 +02:00
Joshua ChenandGitHub 3592f6a331 docs: move codeblock title to props & use line highlight (#11991) 2021-10-24 10:01:50 +02:00
Andrew SmithandGitHub 0761c6d190 Clarify behavior of transformIgnorePatterns when including multiple patterns. (#11796) 2021-09-29 12:44:09 +02:00
RickyandGitHub 8ef6ef0f0e Rename all links to main (#11856) 2021-09-08 16:01:42 -04:00
Sébastien LorberandGitHub 705fbd7e3e Jest Website v2 (#11149) 2021-03-11 17:57:06 +01:00
Gregory CollettandGitHub 618288902d docs: Rectify typo in tutorialReactNative (#10930) 2020-12-08 15:36:03 +01:00
Vince LlauderesandGitHub dcaeb0ab5b chore(docs): update TutorialReactNative.md (#10802) 2020-11-10 12:47:41 +01:00
Simen BekkhusandGitHub ccaf211db5 chore: use typescript-eslint to parse all files (#10722) 2020-10-26 22:35:21 +01:00
Simen BekkhusandGitHub f36a4b0e41 chore: fix some ban-types violations (#10510) 2020-09-14 13:35:12 +02:00
Mahfoudh ArousandGitHub bb75c3dac0 fixing few typos and enhancing clarity in few sentences, in docs (#10296) 2020-07-23 07:39:43 +02:00
Wojciech MajandGitHub 294b8e76ed Replace non-inclusive terms in documentation with alternatives (#10232) 2020-07-03 11:25:14 +02:00
Vishal JagtapandGitHub 5bf1893888 docs: Updated links (#9639)
* Updated links for React

* Updated React Native Home URL
2020-03-06 09:30:00 +01:00
Orkhan AlikhanovandGitHub e2c92fa7f2 Support array of paths for moduleNameMapper aliases (#9465) 2020-02-02 16:20:28 +01:00
BogdanandTim Seckinger bc394925bd Docs: fix broken anchor links (#9247)
* Docs: fix broken anchor links

* Docs: fix links from Configuration.md
2019-12-01 17:45:16 +00:00
Frederik SchubertandSimen Bekkhus 5441259702 docs: tutorial links updated (#9221) 2019-11-22 16:40:59 +01:00
Carolyn StranskyandChristoph Nakazawa 7272c997c5 Docs: Removed condescending language (#9040)
* Round 1 - simply, just

* Round 2 - easy, easily, of course, simple
2019-10-11 15:53:50 +09:00
Simen BekkhusandGitHub 5def3a0858 Migrate to Babel 7 (#7016) 2018-12-18 10:28:03 +01:00
Michał PierzchałaandSimen Bekkhus cec661518c docs: prefer jest.require* instead of require.require* (#7210) 2018-10-20 22:49:18 +02:00
Rubén NorteandGitHub 03ae03a145 Clean references to @providesModule (#7147) 2018-10-12 12:36:06 +01:00
Simen BekkhusandMichał Pierzchała 8f4801e98f stop wrapping markdown (#6299) 2018-05-27 01:16:17 +01:00
Rick Hanlon IIandChristoph Nakazawa 0e599251bf Update to docs to use yarn (#5624)
* Update to docs

* Add changelog
2018-02-20 20:28:05 +00:00
Billy MathewsandChristoph Nakazawa a23aeb159e Update TutorialReactNative.md (#5567)
Removes redundant `import react-native`
2018-02-15 09:25:44 +00:00
Drew DiamantoukosandSimen Bekkhus 76baa2ee70 Added some languages to missing markdown fencing blocks (#5378)
* Touching up some markdown rules

* Missed 3 files!

* Addressed linter error, reverted a block that wasn't actually js

* run lint:md
2018-01-24 11:29:57 +01:00
Simen BekkhusandChristoph Nakazawa a9de384849 chore: add missing release to changelog (#5348)
* chore: add missing release to changelog

* docs: run prettier on all markdown

* docs: add missing parens in changelog
2018-01-19 08:31:50 +00:00
Rory HunterandMichał Pierzchała 73498524c2 Document caveat with mocks, Enzyme, snapshots and React 16 (#5275)
* Document caveat with mocks, Enzyme, snapshots and React 16.

Closes #5258. Update the documentation to describe the warnings that are
emitted by React 16 when using Enzyme, mocked components and snapshot
testing.

* Update CHANGELOG.md

* Describe further options to work around warnings
2018-01-11 18:15:01 +01:00
Simen BekkhusandChristoph Nakazawa 3005ee223c Format markdown files with Prettier (#4853)
* Format md files with prettier

* Format even more markdown

* Fix escaping of .

* Don't use prettier on readme.md

* Use [email protected]

* Prettify moar files

* Remove redundant prettier options from vscode settings

* Format with prettier 1.8.2
2017-11-10 19:33:02 +00:00
KenrickandChristoph Nakazawa f6dd71e4d3 Fix more broken links in documentation (#4684) 2017-10-13 10:44:47 +01:00
Eric NakagawaandGitHub dc4f67a99b Update website to use Docusaurus (#4536)
* Adding a clean copy of Docusaurus

Updating sidebar

Modifying files into Docusaurus format

Slight header logo CSS change

Ignore translated files and build directory

Proper file locations for Docusaurus

Move blog files to Docusaurus preferred location, modified crowdin to output /docs to /translated_pages, updated siteConfig.js

Eslinting Docusaurus files

Ignoring website/blog pages

Linter fixes

* Updating Circle config to remove website test

* Updating Circle config to auto-deploy website

* Add @deltice's config changes before website build, skip yarn build step

* Switch crowdin branch to master

* Updating siteconfig to @deltice's file

* Test crowdin branch

* Switching Crowdin to master

* Uses yarn to install, run, and deploy

* Feedback fixes

Switch to use process.env.VAR for algolia key

Switching crowdin upload/download to use yarn

Circle CI fix

Adding a delay to crowdin

Fixing prettier errors

Updating crowdin command in circle ci config

Path fix

* Upgrading docusaurus to 1.0.0a40, adds an RSS/Atom feed

* Update Docusaurus version

* Updated footer to reflect current footer. Updated footer logo.

* Fixes Edit this doc link, removes node_modules from .gitignore

* Move .gitignore rules to top level

* Updating license file in siteConfig to MIT, added new Docusaurus beta to package.json

* Lint fix

* Editing siteConfig.js to account for /docs not living in /docs/en
2017-10-11 09:00:06 +01:00
Eric NakagawaandChristoph Pojer 340ecfcd23 Add Localization Support for Jest Website (#3416)
* Adds a link to CrowdIn project from language drop down

* Adds comments to generated files

* Modify Circle CI to manually download crowdin cli

* Doc build process only renders pages that are enabled in languages.js

* Added a favicon.ico

* Merging TutorialAsync.md

Adding Bosnian, enabling Espanol

Using ENV variables
2017-05-02 21:33:30 +01:00
Eric NakagawaandDmitrii Abramov 910f9b9b50 Revert Localization effort (#3404)
* Revert Localization effort

* Reran prettier

* Revert dangerfile.js

* Reverting README.md

* Moving line alphabetical order
2017-04-27 21:40:58 -07:00
Eric NakagawaandChristoph Pojer 97e2fbb370 Add Localization Support for Jest Website (#3337)
* Merging TutorialAsync.md

* Copied all docs from current master branch

Localization Cleanup

Added a link to CrowdIn in language drop down

Further cleanup, moved CrowdIn API key to environment

HeaderNav fix

* Fixes prettier.js and other CI issues
Added comments to generated files
Worked out additional lint issues, added i18n files to ignore

* Update .eslintignore
2017-04-25 18:02:29 +01:00
Vasiliy TaranovandChristoph Pojer f1e29dfb9f Fix transformIgnorePatterns example (#3136)
Without the slash at the end `react-native-button` is still being ignored for some reason.
2017-03-14 06:32:28 +09:00
Hannan AliandChristoph Pojer 3fd30b3db6 ESLint support for documentation (#3047)
* 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
2017-03-04 08:46:48 +00:00
Robby KimandChristoph Pojer fc1c0c7af5 Removed .mockComponent (#2961)
* Removed `.mockComponent`

It looks like the default function exported from 'jest-react-native' is the `mockComponent` function. When I was running `jestReactNative.mockComponent`, I would get `TypeError: jestReactNative.mockComponent is not a function`. In my code, removing that and just running `jestReactNative('TouchableHighlight')` worked so I just removed it from the documentation to reflect that.

* added 'react-native/jest/mockComponent' path

* Update TutorialReactNative.md
2017-02-21 20:52:41 +00:00
Héctor RamosandGitHub be1468fb40 Revamped Jest Docs and Website
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
2017-01-27 09:40:05 -08:00
Christoph PojerandGitHub 4205f34480 Forward jest-react-native to react-native. (#2182)
* Make mocks pattern optional in jest-haste-map.

* Update jest-react-native preset to forward to react-native.
2016-11-29 12:04:29 +00:00
Christoph PojerandGitHub 8323dc8f5a Transform/preprocessor cleanups; remove old deprecation warnings. (#2022)
* Update tests.

* * More updates to preprocessor -> transform conversion.
* Remove old deprecation warnings.
2016-10-28 15:53:07 +09:00
Keyan ZhangandChristoph Pojer 6b85110547 Replace scriptPreprocessor config with transform (#1917)
* 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
2016-10-28 15:07:04 +09:00
Christoph PojerandGitHub 39e9cd8f11 Update TutorialReactNative.md 2016-10-18 09:31:09 +09:00
Ferran NegreandChristoph Pojer 1244ffe83d Update React Native docs with links to a testing series example. (#1848) 2016-10-03 19:38:27 +09:00
cpojer 052e38ebe9 Simplify the website + Jest 16 blog post. 2016-10-03 17:21:58 +09:00
Bohdan GanickyandChristoph Pojer e8d571e16b Fixed typo in TutorialReactNative.md (#1735) 2016-09-20 09:23:11 +09:00
Christoph PojerandGitHub 6ff421c5b5 Update TutorialReactNative.md 2016-09-16 20:34:11 -07:00
cpojer fed449c226 Changelog, get rid of describe in docs, fix thrown error printing, update new default error messages. 2016-08-31 19:02:14 +01:00
Christoph PojerandGitHub 4a41a50f14 More react-native default mocks and added a mockComponent convenience function. (#1516) 2016-08-30 15:42:06 +01:00
Christoph PojerandGitHub 3bbf32a239 New defaults for Jest. (#1511) 2016-08-30 11:07:15 +01:00
Christoph PojerandGitHub 3282e9abe9 Use react-test-renderer in example code. (#1344) 2016-08-01 18:53:23 +09:00