Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Monorepo #98

Closed
wants to merge 142 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
9833627
New: init monorepo
alexkrolick Sep 13, 2018
836d5cb
feat: initial release
Mar 19, 2018
7f1c290
0.0.0
Mar 19, 2018
f00b67c
feat: initial release
Mar 19, 2018
573418d
fix(release): manually release a major version
Mar 19, 2018
c248a4b
docs: fix a few broken links
Mar 19, 2018
aafab78
docs: add useful comment
Mar 19, 2018
76c2e45
docs: add faq for enzyme
Mar 19, 2018
3ff74bb
fix(sel): match react native web's testID prop
Mar 19, 2018
a6c2f2e
docs(tests): add some more examples in tests
Mar 19, 2018
7ee8197
(docs): add faq entry about dealing with multiple data-testids (#4)
audiolion Mar 19, 2018
6c5a167
chore(prettier): fix syntax error in the rc file
Mar 19, 2018
bc15574
feat(unmount): add `unmount` to render object
Mar 19, 2018
220ab05
chore: rename internal utility sel to select (#5)
dnlsandiego Mar 20, 2018
33b91d0
chore: move code of conduct to root
Mar 20, 2018
e56b50f
chore(coc): forgot to git add
Mar 20, 2018
164a33b
feat(typings): add ts definitions (#7)
Miklet Mar 20, 2018
712278c
fix(TypeScript): add missing 'typings' folder to files property (#9)
Miklet Mar 20, 2018
42ea48e
Update axios.js
alejandronanez Mar 20, 2018
4112713
adding myself to the contributors list
alejandronanez Mar 20, 2018
77c1e85
feat(typings): add ts definitions (#7)
Miklet Mar 20, 2018
701f194
docs(contributors): fix contributor list
Mar 20, 2018
596415a
docs(goat): add goat logo
Mar 21, 2018
61758a2
docs: update goat
Mar 21, 2018
745ee62
feat: Add getByTestId utility (#10)
pbomb Mar 21, 2018
9a04ff6
feat(node): relax Node version requirement to >= 6 (#14)
wKovacs64 Mar 22, 2018
b91eef0
docs: add FAQ section about how flushPromises work (closes #11) (#15)
gnapse Mar 22, 2018
64e0758
feat(render): add new query capabilities for improved tests (#17)
Mar 23, 2018
a34dbf7
docs: update readme for getByLabelText (#24)
Mar 27, 2018
df42b1e
docs(problem-solution): update problem/solution
Mar 28, 2018
dc0f18b
feat(matchers): add custom jest matchers (#13)
antsmartian Mar 28, 2018
1d08b13
docs: fix you->your typo (#26)
stephenmathieson Mar 29, 2018
54487ca
fix: add the missed file `"extend-expect.js"` to `package.json` (#28)
antsmartian Mar 29, 2018
4d74bda
feat(waitForExpect): add waitForExpect (#25)
lgandecki Mar 29, 2018
b18dec8
fix(waitForExpect): rename to `wait`
Mar 29, 2018
f87d82f
fix(wait): be explicit about the timeout and interval
Mar 29, 2018
c89b166
docs(contributors): add sompylasar (#29)
sompylasar Mar 29, 2018
0d1c1ef
feat(getByAltText): add a new query utility
Mar 29, 2018
2d34532
fix(textMatch): if the textToMatch is not a string then it wont match
Mar 29, 2018
fc6de1a
docs: update getByAltText docs
Mar 30, 2018
f28c948
fix(jest-matchers): message should be function and added test cases f…
antsmartian Mar 30, 2018
c020aaa
fix(extend-expect): remove expect import
Apr 2, 2018
75e932c
fix(definitions): export correct types for wait and waitForExpect (#33)
jday3 Apr 2, 2018
1c619d7
docs: add documentation for using Matchers w/ Typescript (#37)
tsiq-swyx Apr 2, 2018
2c62eed
fix(release): manually release a patch version
Apr 2, 2018
7f65f4c
docs: update README.md (#39)
Apr 3, 2018
27d352d
fix(label): support aria-label (#42)
Apr 4, 2018
ad51d63
feat(matchers): add toHaveAttribute custom matcher (closes #43) (#44)
gnapse Apr 5, 2018
82b022d
feat: extract most of the logic to dom-testing-library
Apr 6, 2018
311b821
feat(fireEvent): add fireEvent from dom-testing-library (#48)
jomaxx Apr 10, 2018
9b38bb6
docs: fixes typo on the fireEvent example (#49)
aputhin Apr 10, 2018
b0e3130
docs: add React TDD examples with react-testing-library (#50)
mbaranovski Apr 10, 2018
fba1513
docs: remove unnecessary variable in the fireEvent documentation (#51)
thiagopaiva99 Apr 11, 2018
29e107a
fix(TypeScript): add a definition for TextMatch (#52)
thchia Apr 11, 2018
fcaaf36
docs: add note about snapshot diffing (#55)
jlongster Apr 13, 2018
cd36809
docs: fix typo in README (#56)
Gpx Apr 13, 2018
a988c42
docs: add note to docs about Simulate.click not working on browser ev…
thchia Apr 14, 2018
3b1255b
docs: add test example for context. (#60)
ChrisWcs Apr 21, 2018
8aa7d08
feat(queries): upgrade dom-testing-library to support all queries
Apr 24, 2018
527bd28
feat(waitForElement): add export of waitForElement
Apr 27, 2018
fa4cb0f
chore: document GitHub issues flow (#67)
alexkrolick May 2, 2018
e824eed
feat(examples): Add context examples (#68)
alexkrolick May 2, 2018
f00cff7
docs(spectrum): update the link
May 2, 2018
b5d6fc5
feat(rerender): implement rerender (#65) (#70)
johann-sonntagbauer May 3, 2018
76512c7
fix(TS): add types for exported functions. (#69)
maddijoyce May 3, 2018
0f47d15
chore: issue templates (#71)
alexkrolick May 4, 2018
851a031
fix: update getByTestId types (#74)
alexkrolick May 4, 2018
614230f
docs: copy in waitForElement docs (#73)
alexkrolick May 4, 2018
cd5d61b
feat(TextMatch): upgrade dom-testing-library
May 6, 2018
f16d581
test: adjust tests for breaking changes
May 6, 2018
fb662cc
fix(TS): examples + types (#77)
alexkrolick May 6, 2018
ef9a985
docs: update readme to add wait best practice recommendation that was…
RyanAtViceSoftware May 7, 2018
aca1729
docs(examples): add new react TDD example (#80)
May 8, 2018
357d4c0
fix(TS): type literal property cannot have an initializer (#82)
InExtremaRes May 8, 2018
c339cf4
tests: change mockImplementationOnce to mockResolvedValueOnce (#83)
Gpx May 8, 2018
8d711da
test: use mockResolvedValueOnce instead (#84)
May 8, 2018
23cf56a
docs: add advice to use fireEvent over Simulate (#85)
Gpx May 8, 2018
8a3c752
feat(debug): add a debug convenience method (#87)
May 15, 2018
f3f442e
fix(TS): Add missing getAll and queryAll functions to TS definitions …
pbomb May 18, 2018
278a45e
fix(TS): remove unused import to prevent naming conflict with export …
kamalgill May 18, 2018
4199e13
fix(TS): add debug() to typings (#90)
jgoz May 18, 2018
1582523
docs(examples): clarify examples (#92)
SavePointSam May 24, 2018
3c0a537
docs: add React.Fragment info (#98)
NickyMeuleman May 30, 2018
2173aa3
docs: add learning material section
May 30, 2018
fef54cf
docs: add workshop link
May 30, 2018
c33c2d0
docs: jest-dom for custom Jest matchers and blog post (#100)
rkotze Jun 1, 2018
dcca078
docs: fix typo in textMatch example(#101) (#102)
eliassotodo Jun 5, 2018
d66503a
docs: add article (#103)
Jun 5, 2018
777c67a
docs: update Feature Request issue template (#104)
gnapse Jun 5, 2018
c8c275e
docs: Add "Integration testing in React" to README (#105)
qswitcher Jun 5, 2018
7af3cf0
docs: fix typo in TextMatch documentation (#106)
bdelaforest Jun 5, 2018
47c7b8b
fix(TS): add missing prettyDOM export to typings file (#109)
icfantv Jun 8, 2018
c24fe74
fix: add support for react portal elements (#107)
spichen Jun 12, 2018
def1848
fix(TS): export RenderResult interface (#113)
knalinne Jun 12, 2018
44a0653
fix(engines): update engines.node in package.json
Jun 13, 2018
1f0a2fa
docs: update README.md (#117)
MarkPollmann Jun 15, 2018
e87c07f
feat(render): deprecate renderIntoDocument and make it the default (#…
Jun 19, 2018
16f9626
fix(cleanup): don't error out if the container is not in the body
Jun 19, 2018
de9ee9a
docs: add note about triggering onChange with a different value (#120)
silvenon Jun 20, 2018
4188c2d
docs(within): add within docs
Jun 21, 2018
7955212
docs: fix typos
Jun 21, 2018
5efeade
docs: fix variable name (#124)
Jun 22, 2018
09cc542
fix(TS): add JSDoc to typings of exported functions (#125)
MarkPollmann Jun 24, 2018
d75d166
feat(render): return baseElement from render (#127)
ehteshamkafeel Jun 27, 2018
c2d0e29
docs: change renderIntoDocument to render (#128)
yeion7 Jun 27, 2018
8a00d02
fix(TS): update typings with dom-testing-library queries and export t…
jpavon Jul 2, 2018
f04add8
fix(TS): clean up code from index.d.ts (#131)
jpavon Jul 3, 2018
c9e074d
docs: add render options Example for container (#132)
duncanleung Jul 8, 2018
488731a
chore: fix eslint issue in tests.
Jul 9, 2018
d92d92d
docs: add duncanleung as docs contributor (#133)
duncanleung Jul 9, 2018
daf4981
docs: New Learning Material section (#135)
tyagow Jul 13, 2018
1f67413
fix: ensure waitForElement responds to attribute and textNode changes…
rbrtsmith Jul 17, 2018
b8545a5
docs: fix syntax in wait example (#139)
zgreen Jul 18, 2018
5f6795b
docs: added Using Without Jest link to docs (#142)
dadamssg Jul 20, 2018
ec1fa42
docs: add new article to "Learning Material" section. (#143)
yazaabed Jul 20, 2018
dde5440
fix: switch default baseElement to document.body (#145)
timbonicus Jul 25, 2018
b151a0f
docs: add a contributor (#147)
timbonicus Jul 26, 2018
9e81ec0
fix(TS): declare optional argument to `debug` (#148)
gnapse Jul 26, 2018
38aa3a5
docs: add a video series to learning material (#149)
divyanshu013 Jul 29, 2018
14f6377
fix: Add baseElement to render return type (#151)
gnapse Aug 3, 2018
7f1e4ae
docs: replace getElementByText with getByText (#150)
nickserv Aug 4, 2018
131a598
fix: force upgrade of dom-testing-library
Aug 6, 2018
98d5c63
fix(change): no longer using Simulate.change
Aug 9, 2018
cb2ff8f
fix(revert): revert previous change (was a breaking change).
Aug 9, 2018
9bfc9d2
fix(change): no longer using Simulate.change
Aug 9, 2018
4058580
docs: add FAQ for the change event
Aug 10, 2018
cafb86c
chore: cleanup deprecated assertions
Aug 10, 2018
597ac14
docs: tiny fix (#158)
marktinsley Aug 15, 2018
6c307d9
docs: fix typo in README (#159)
Adam13531 Aug 16, 2018
1fc7b5a
docs: add link to example repo using react-testing-library to test a …
zth Aug 19, 2018
2d336d9
docs: update Readme.md (#163)
snaumov Aug 23, 2018
f08efe7
docs: update `debug` description (#164)
natenorberg Aug 23, 2018
bc162f7
docs: add missing curly brackets (#165)
eyalcohen4 Sep 2, 2018
919b214
fix(TS): update typings for optional option arguments (#168)
gnapse Sep 3, 2018
f851eea
docs: add global setup, custom render docs (#166)
alexkrolick Sep 4, 2018
2ea1b89
docs: update README.md (#171)
arturoromeroslc Sep 11, 2018
324fde4
docs: add wait section add query by text (#172)
petermakowski Sep 11, 2018
5931345
docs: parenthesis was incorrectly placed :) (#173)
Michielnuyts Sep 12, 2018
c6ef280
docs: add additional learning material to README (#174)
Lukeghenco Sep 12, 2018
1428251
New: add addon-async package
alexkrolick Sep 13, 2018
b8398ec
New: shuffle top level configs
alexkrolick Sep 13, 2018
e4c2484
Docs: fix links
alexkrolick Sep 13, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: add React TDD examples with react-testing-library (#50)
* Added React TDD examples with react-testing-library

* Added React TDD examples with react-testing-library

* Resolved conflicts
mbaranovski authored and alexkrolick committed Sep 13, 2018
commit b0e3130670003e571b98558a3e9774c26420a110
10 changes: 10 additions & 0 deletions packages/react-testing-library/.all-contributorsrc
Original file line number Diff line number Diff line change
@@ -149,6 +149,16 @@
"test"
]
},
{
"login": "mbaranovski",
"name": "Michal Baranowski",
"avatar_url": "https://avatars1.githubusercontent.com/u/29602306?v=4",
"profile": "https://twitter.com/baranovskim",
"contributions": [
"blog",
"tutorial"
]
},
{
"login": "aputhin",
"name": "Arthur Puthin",
8 changes: 6 additions & 2 deletions packages/react-testing-library/README.md
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
[![downloads][downloads-badge]][npmtrends]
[![MIT License][license-badge]][license]

[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors)
[![All Contributors](https://img.shields.io/badge/all_contributors-16-orange.svg?style=flat-square)](#contributors)
[![PRs Welcome][prs-badge]][prs]
[![Code of Conduct][coc-badge]][coc]

@@ -451,6 +451,10 @@ Some included are:
* [`react-redux`](https://github.com/kentcdodds/react-testing-library/blob/master/src/__tests__/react-redux.js)
* [`react-router`](https://github.com/kentcdodds/react-testing-library/blob/master/src/__tests__/react-router.js)

Examples of TDD with react-testing-library:

* [`TDD-React`](https://medium.com/@mbaranovski/quick-guide-to-tdd-in-react-81888be67c64)

Feel free to contribute more!

## FAQ
@@ -727,7 +731,7 @@ Thanks goes to these people ([emoji key][emojis]):
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Documentation") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=kentcdodds "Tests") | [<img src="https://avatars1.githubusercontent.com/u/2430381?v=4" width="100px;"/><br /><sub><b>Ryan Castner</b></sub>](http://audiolion.github.io)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=audiolion "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/8008023?v=4" width="100px;"/><br /><sub><b>Daniel Sandiego</b></sub>](https://www.dnlsandiego.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=dnlsandiego "Code") | [<img src="https://avatars2.githubusercontent.com/u/12592677?v=4" width="100px;"/><br /><sub><b>Paweł Mikołajczyk</b></sub>](https://github.com/Miklet)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=Miklet "Code") | [<img src="https://avatars3.githubusercontent.com/u/464978?v=4" width="100px;"/><br /><sub><b>Alejandro Ñáñez Ortiz</b></sub>](http://co.linkedin.com/in/alejandronanez/)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=alejandronanez "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/1402095?v=4" width="100px;"/><br /><sub><b>Matt Parrish</b></sub>](https://github.com/pbomb)<br />[🐛](https://github.com/kentcdodds/react-testing-library/issues?q=author%3Apbomb "Bug reports") [💻](https://github.com/kentcdodds/react-testing-library/commits?author=pbomb "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=pbomb "Documentation") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=pbomb "Tests") | [<img src="https://avatars1.githubusercontent.com/u/1288694?v=4" width="100px;"/><br /><sub><b>Justin Hall</b></sub>](https://github.com/wKovacs64)<br />[📦](#platform-wKovacs64 "Packaging/porting to new platform") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| [<img src="https://avatars1.githubusercontent.com/u/1241511?s=460&v=4" width="100px;"/><br /><sub><b>Anto Aravinth</b></sub>](https://github.com/antoaravinth)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=antoaravinth "Code") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=antoaravinth "Tests") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=antoaravinth "Documentation") | [<img src="https://avatars2.githubusercontent.com/u/3462296?v=4" width="100px;"/><br /><sub><b>Jonah Moses</b></sub>](https://github.com/JonahMoses)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=JonahMoses "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/4002543?v=4" width="100px;"/><br /><sub><b>Łukasz Gandecki</b></sub>](http://team.thebrain.pro)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=lgandecki "Code") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=lgandecki "Tests") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=lgandecki "Documentation") | [<img src="https://avatars2.githubusercontent.com/u/498274?v=4" width="100px;"/><br /><sub><b>Ivan Babak</b></sub>](https://sompylasar.github.io)<br />[🐛](https://github.com/kentcdodds/react-testing-library/issues?q=author%3Asompylasar "Bug reports") [🤔](#ideas-sompylasar "Ideas, Planning, & Feedback") | [<img src="https://avatars3.githubusercontent.com/u/4439618?v=4" width="100px;"/><br /><sub><b>Jesse Day</b></sub>](https://github.com/jday3)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=jday3 "Code") | [<img src="https://avatars0.githubusercontent.com/u/15199?v=4" width="100px;"/><br /><sub><b>Ernesto García</b></sub>](http://gnapse.github.io)<br />[💬](#question-gnapse "Answering Questions") [💻](https://github.com/kentcdodds/react-testing-library/commits?author=gnapse "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=gnapse "Documentation") | [<img src="https://avatars2.githubusercontent.com/u/2747424?v=4" width="100px;"/><br /><sub><b>Josef Maxx Blake</b></sub>](http://jomaxx.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=jomaxx "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=jomaxx "Documentation") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=jomaxx "Tests") |
| [<img src="https://avatars3.githubusercontent.com/u/13985684?v=4" width="100px;"/><br /><sub><b>Arthur Puthin</b></sub>](https://github.com/aputhin)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=aputhin "Documentation") |
| [<img src="https://avatars1.githubusercontent.com/u/29602306?v=4" width="100px;"/><br /><sub><b>Michal Baranowski</b></sub>](https://twitter.com/baranovskim)<br />[📝](#blog-mbaranovski "Blogposts") [✅](#tutorial-mbaranovski "Tutorials") | [<img src="https://avatars3.githubusercontent.com/u/13985684?v=4" width="100px;"/><br /><sub><b>Arthur Puthin</b></sub>](https://github.com/aputhin)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=aputhin "Documentation") |

<!-- ALL-CONTRIBUTORS-LIST:END -->