Commit Graph

89 Commits

Author SHA1 Message Date
Frazer Smith 49bacb9620
chore: update jest repo organisation in urls (#14413) 2023-08-15 15:00:44 +02:00
Simen Bekkhus fcb1c34d29
chore: remove Enzyme example (#14119) 2023-05-02 12:11:01 +02:00
Tom Mrazauskas 8219820a87
chore(lint): use `jest/prefer-to-be` rule (#13369) 2022-10-03 14:07:11 +02:00
paulreece 0919e13262
docs: react tutorial admonitions (#13307) 2022-09-28 08:45:55 +02:00
Jeffrey Fisher 98936a2c99
docs: Update Enzyme links to use new URL (#13166) 2022-08-24 17:18:54 +02:00
Simen Bekkhus c2cd7e6d41
docs(website): use `npm2yarn` plugin (#12473) 2022-02-23 13:06:29 +01:00
Simen Bekkhus c4676a029b
chore: update website dependencies (#12381) 2022-02-13 10:20:46 +01:00
Simen Bekkhus e4302cd646
chore: update eslint-plugin-markdown (#12380) 2022-02-13 10:02:13 +01:00
Nicolas Charpentier e3c84b54d6
chore: update React examples to match with the new React guidelines (#12217) 2022-02-11 08:31:28 +01:00
Nicolas Charpentier 5d483ce07e
chore: remove .react from React files (#12223) 2022-01-06 17:25:45 +01:00
Joshua Chen 7b857d5dba
docs: move codeblock title to props & use line highlight (#11991) 2021-10-24 10:01:50 +02:00
Ricky d6e5ddb0c3
Rename all links to main (#11856) 2021-09-08 16:01:42 -04:00
Nicolas Charpentier 040a50b725
docs: use function components in React examples (#11329) 2021-04-23 07:20:24 +02:00
Simen Bekkhus a66eec74b5
chore(jest-transform): refactor transformer API to reduce number of arguments (#10834) 2020-11-16 15:27:05 +01:00
Simen Bekkhus 08c8fcae9f
chore: use `typescript-eslint` to parse all files (#10722) 2020-10-26 22:35:21 +01:00
Simen Bekkhus 621b8ea752
chore: fix some `ban-types` violations (#10510) 2020-09-14 13:35:12 +02:00
Mahfoudh Arous 28413dfd99
fixing few typos and enhancing clarity in few sentences, in docs (#10296) 2020-07-23 07:39:43 +02:00
Vishal Jagtap 1932269c55
docs: Updated links (#9639)
* Updated links for React

* Updated React Native Home URL
2020-03-06 09:30:00 +01:00
Ryan von Kunes Newton c031ff0cbf docs: add comment about 'cleanup' in react-testing-library exam… (#9144) 2019-11-09 16:58:59 +01:00
Carolyn Stransky 59f6e3fd3f 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 Bekkhus ee2bea16a9
chore: sort member in imports (#8846) 2019-08-18 13:37:09 +02:00
Joana Deluca Kleis da05da4db7 [docs] Updated react-testing-library imports in website (#8757) 2019-07-27 19:03:17 +02:00
Joana Deluca Kleis 8902dbe77f [docs] changed react-testing-library package name to @testing-library/react (#8753) 2019-07-27 10:21:38 +02:00
Monish ca10069067 chore(docs): fix typos (#8696)
Fixes #7437
2019-07-16 16:02:56 +02:00
Gabriel a5c7380e07 Correcting a link that leads to the documentation of Jest inside the create-react-app's documentation (#8483) 2019-05-24 19:24:25 +02:00
Simen Bekkhus 1818d84b2c
Migrate to Babel 7 (#7016) 2018-12-18 10:28:03 +01:00
H1Gdev 7a047f4826 Fix typo in docs. (#7414) 2018-11-27 08:06:23 +01:00
Terrence Wong 5b7c75d4c3 Add react testing library example (#7346)
* docs: add react-testing-library example

* chore: rename test files to match comments in docs

* docs: show react-testing-library example first then enzyme
2018-11-09 18:48:40 +00:00
Tim Dietrich 7be2a8ef3f Updated documentation: "Snapshot Testing with Mocks...": option 2) should show use of DOM (#6923) 2018-10-20 23:06:29 +02:00
Doron Pearl d57b919527 Documented another option to avoid React 16 warnings (#6186) 2018-08-09 12:14:44 +02:00
Simen Bekkhus 6eeadab63b stop wrapping markdown (#6299) 2018-05-27 01:16:17 +01:00
atomcorp 5a21be3e07 Update TutorialReact.md (#5949)
* adds create-react-app snapshot dependency in docs

The current docs imply you can use Jest snapshots with create-react-app 'out-the-box', however the Snapshot Testing example doesn't work with a fresh install. You need to additionally install `react-test-renderer` as a dependency.

I thought it was more helpful to change the docs, but if it's better to raise the issue elsewhere let me know?!

* Update TutorialReact.md

The current docs imply you can use Jest snapshots with create-react-app 'out-the-box', however the Snapshot Testing example doesn't work with a fresh install. You need to additionally install `react-test-renderer` as a dependency.

I thought it was more helpful to change the docs, but if it's better to raise the issue elsewhere let me know?!

* ran yarn install and yarn lint:md

* amendned text to match w/o CRA code example
2018-04-09 11:11:43 -04:00
Simen Bekkhus 3f595526d8 remove retainLines from coverage instrumentation (#5692)
* remove retainLines from coverage instrumentation

* Update CHANGELOG.md

* update snapshot

* update example transformer to use sourcemaps
2018-02-28 18:36:02 +00:00
Simen Bekkhus f43f0db4a4 Update dependencies (#5681)
* upgrade dependencies

* upgrade prettier and fix lint warnings

* update flow config

* update snapshot
2018-02-27 09:06:41 +00:00
Rick Hanlon II 6ee2a14b83 Update to docs to use yarn (#5624)
* Update to docs

* Add changelog
2018-02-20 20:28:05 +00:00
Roman Gusev 884b95d754 docs: use AmE spelling of behavior (#5453) 2018-02-04 00:30:32 +00:00
Kent C. Dodds a10288fde5 docs: replace preset-es2015 with preset-env (#5385) 2018-01-24 14:58:49 +01:00
Drew Diamantoukos c8de0c8859 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 Bekkhus 630b5c0bb5 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 Hunter 2d077149f2 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
Boris Paskhaver 2daf8fe944 Fix typo in test file name in React documentation (#5254)
* Fix typo in test file name in React documentation

* Update name of snapshot file
2018-01-08 23:34:42 +01:00
Simen Bekkhus 9b40311dec 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 prettier@1.8.1

* Prettify moar files

* Remove redundant prettier options from vscode settings

* Format with prettier 1.8.2
2017-11-10 19:33:02 +00:00
Kenrick b1505d95e4 Fix more broken links in documentation (#4684) 2017-10-13 10:44:47 +01:00
Eric Nakagawa 172c0b28d5 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 Nakagawa 62d29f2636 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 Nakagawa 27b53ca4fe 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 Nakagawa 144327dc59 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
Tengjiao Cai 86fe987722 install react-test-render to fix Enzyme console warning (#3323)
* install react-test-render for removing enzyme warning

Enzyme recently made a fix for console warning if we use React v15.5+ , See issue here: https://github.com/airbnb/enzyme/pull/876

To fix that, we have to install react-test-render instead of react-addons-test-utils

Warning:
``` 
 console.error node_modules/fbjs/lib/warning.js:36
    Warning: ReactTestUtils has been moved to react-dom/test-utils. Update references to remove this warning.

  console.error node_modules/fbjs/lib/warning.js:36
    Warning: Shallow renderer has been moved to react-test-renderer/shallow. Update references to remove this warning.
```

* Update TutorialReact.md
2017-04-19 05:59:19 -07:00
Dan Abramov 4fd9e48926 Make it clear CRA users don't need to add dependencies (#3312) 2017-04-18 08:37:29 -07:00
amalv a78e120151 Update TutorialReact.md (#3075)
Fix link to getting started documentation.
2017-03-06 11:24:46 +00:00