Skip to content

Commit 4bf26d7

Browse files
author
Kent C. Dodds
committed
init
0 parents  commit 4bf26d7

33 files changed

+1864
-0
lines changed

.all-contributorsrc

+142
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"projectName": "dom-testing-library",
3+
"projectOwner": "kentcdodds",
4+
"repoType": "github",
5+
"files": [
6+
"README.md"
7+
],
8+
"imageSize": 100,
9+
"commit": false,
10+
"contributors": [
11+
{
12+
"login": "kentcdodds",
13+
"name": "Kent C. Dodds",
14+
"avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=3",
15+
"profile": "https://kentcdodds.com",
16+
"contributions": [
17+
"code",
18+
"doc",
19+
"infra",
20+
"test"
21+
]
22+
},
23+
{
24+
"login": "audiolion",
25+
"name": "Ryan Castner",
26+
"avatar_url": "https://avatars1.githubusercontent.com/u/2430381?v=4",
27+
"profile": "http://audiolion.github.io",
28+
"contributions": [
29+
"doc"
30+
]
31+
},
32+
{
33+
"login": "dnlsandiego",
34+
"name": "Daniel Sandiego",
35+
"avatar_url": "https://avatars0.githubusercontent.com/u/8008023?v=4",
36+
"profile": "https://www.dnlsandiego.com",
37+
"contributions": [
38+
"code"
39+
]
40+
},
41+
{
42+
"login": "Miklet",
43+
"name": "Paweł Mikołajczyk",
44+
"avatar_url": "https://avatars2.githubusercontent.com/u/12592677?v=4",
45+
"profile": "https://github.com/Miklet",
46+
"contributions": [
47+
"code"
48+
]
49+
},
50+
{
51+
"login": "alejandronanez",
52+
"name": "Alejandro Ñáñez Ortiz",
53+
"avatar_url": "https://avatars3.githubusercontent.com/u/464978?v=4",
54+
"profile": "http://co.linkedin.com/in/alejandronanez/",
55+
"contributions": [
56+
"doc"
57+
]
58+
},
59+
{
60+
"login": "pbomb",
61+
"name": "Matt Parrish",
62+
"avatar_url": "https://avatars0.githubusercontent.com/u/1402095?v=4",
63+
"profile": "https://github.com/pbomb",
64+
"contributions": [
65+
"bug",
66+
"code",
67+
"doc",
68+
"test"
69+
]
70+
},
71+
{
72+
"login": "wKovacs64",
73+
"name": "Justin Hall",
74+
"avatar_url": "https://avatars1.githubusercontent.com/u/1288694?v=4",
75+
"profile": "https://github.com/wKovacs64",
76+
"contributions": [
77+
"platform"
78+
]
79+
},
80+
{
81+
"login": "antoaravinth",
82+
"name": "Anto Aravinth",
83+
"avatar_url": "https://avatars1.githubusercontent.com/u/1241511?s=460&v=4",
84+
"profile": "https://github.com/antoaravinth",
85+
"contributions": [
86+
"code",
87+
"test",
88+
"doc"
89+
]
90+
},
91+
{
92+
"login": "JonahMoses",
93+
"name": "Jonah Moses",
94+
"avatar_url": "https://avatars2.githubusercontent.com/u/3462296?v=4",
95+
"profile": "https://github.com/JonahMoses",
96+
"contributions": [
97+
"doc"
98+
]
99+
},
100+
{
101+
"login": "lgandecki",
102+
"name": "Łukasz Gandecki",
103+
"avatar_url": "https://avatars1.githubusercontent.com/u/4002543?v=4",
104+
"profile": "http://team.thebrain.pro",
105+
"contributions": [
106+
"code",
107+
"test",
108+
"doc"
109+
]
110+
},
111+
{
112+
"login": "sompylasar",
113+
"name": "Ivan Babak",
114+
"avatar_url": "https://avatars2.githubusercontent.com/u/498274?v=4",
115+
"profile": "https://sompylasar.github.io",
116+
"contributions": [
117+
"bug",
118+
"ideas"
119+
]
120+
},
121+
{
122+
"login": "jday3",
123+
"name": "Jesse Day",
124+
"avatar_url": "https://avatars3.githubusercontent.com/u/4439618?v=4",
125+
"profile": "https://github.com/jday3",
126+
"contributions": [
127+
"code"
128+
]
129+
},
130+
{
131+
"login": "gnapse",
132+
"name": "Ernesto García",
133+
"avatar_url": "https://avatars0.githubusercontent.com/u/15199?v=4",
134+
"profile": "http://gnapse.github.io",
135+
"contributions": [
136+
"question",
137+
"code",
138+
"doc"
139+
]
140+
}
141+
]
142+
}

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.js text eol=lf

.github/ISSUE_TEMPLATE.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!--
2+
Thanks for your interest in the project. I appreciate bugs filed and PRs submitted!
3+
Please make sure that you are familiar with and follow the Code of Conduct for
4+
this project (found in the CODE_OF_CONDUCT.md file).
5+
6+
Please fill out this template with all the relevant information so we can
7+
understand what's going on and fix the issue.
8+
9+
I'll probably ask you to submit the fix (after giving some direction). If you've
10+
never done that before, that's great! Check this free short video tutorial to
11+
learn how: http://kcd.im/pull-request
12+
-->
13+
14+
* `dom-testing-library` version:
15+
* `node` version:
16+
* `npm` (or `yarn`) version:
17+
18+
Relevant code or config
19+
20+
```javascript
21+
```
22+
23+
What you did:
24+
25+
What happened:
26+
27+
<!-- Please provide the full error message/screenshots/anything -->
28+
29+
Reproduction repository:
30+
31+
<!--
32+
If possible, please create a repository that reproduces the issue with the
33+
minimal amount of code possible.
34+
-->
35+
36+
Problem description:
37+
38+
Suggested solution:

.github/PULL_REQUEST_TEMPLATE.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!--
2+
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!
3+
4+
Please make sure that you are familiar with and follow the Code of Conduct for
5+
this project (found in the CODE_OF_CONDUCT.md file).
6+
7+
Also, please make sure you're familiar with and follow the instructions in the
8+
contributing guidelines (found in the CONTRIBUTING.md file).
9+
10+
If you're new to contributing to open source projects, you might find this free
11+
video course helpful: http://kcd.im/pull-request
12+
13+
Please fill out the information below to expedite the review and (hopefully)
14+
merge of your pull request!
15+
-->
16+
17+
<!-- What changes are being made? (What feature/bug is being fixed here?) -->
18+
19+
**What**:
20+
21+
<!-- Why are these changes necessary? -->
22+
23+
**Why**:
24+
25+
<!-- How were these changes implemented? -->
26+
27+
**How**:
28+
29+
<!-- Have you done all of these things? -->
30+
31+
**Checklist**:
32+
33+
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
34+
35+
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
36+
37+
* [ ] Documentation
38+
* [ ] Tests
39+
* [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
40+
* [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->
41+
42+
<!-- feel free to add additional comments -->

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
coverage
3+
dist
4+
.opt-in
5+
.opt-out
6+
.DS_Store
7+
.eslintcache
8+
9+
# these cause more harm than good
10+
# when working with contributors
11+
package-lock.json
12+
yarn.lock

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=http://registry.npmjs.org/
2+
package-lock=false

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"trailingComma": "all",
8+
"bracketSpacing": false,
9+
"jsxBracketSameLine": false
10+
}

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- ~/.npm
6+
notifications:
7+
email: false
8+
node_js: '8'
9+
install: npm install
10+
script: npm run validate
11+
after_success: kcd-scripts travis-after-success
12+
branches:
13+
only: master

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CHANGELOG
2+
3+
The changelog is automatically updated using [semantic-release](https://github.com/semantic-release/semantic-release).
4+
You can see it on the [releases page](../../releases).

CONTRIBUTING.md

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Contributing
2+
3+
Thanks for being willing to contribute!
4+
5+
**Working on your first Pull Request?** You can learn how from this _free_ series
6+
[How to Contribute to an Open Source Project on GitHub][egghead]
7+
8+
## Project setup
9+
10+
1. Fork and clone the repo
11+
2. Run `npm run setup -s` to install dependencies and run validation
12+
3. Create a branch for your PR with `git checkout -b pr/your-branch-name`
13+
14+
> Tip: Keep your `master` branch pointing at the original repository and make
15+
> pull requests from branches on your fork. To do this, run:
16+
>
17+
> ```
18+
> git remote add upstream https://github.com/kentcdodds/dom-testing-library.git
19+
> git fetch upstream
20+
> git branch --set-upstream-to=upstream/master master
21+
> ```
22+
>
23+
> This will add the original repository as a "remote" called "upstream,"
24+
> Then fetch the git information from that remote, then set your local `master`
25+
> branch to use the upstream master branch whenever you run `git pull`.
26+
> Then you can make all of your pull request branches based on this `master`
27+
> branch. Whenever you want to update your version of `master`, do a regular
28+
> `git pull`.
29+
30+
## Add yourself as a contributor
31+
32+
This project follows the [all contributors][all-contributors] specification.
33+
To add yourself to the table of contributors on the `README.md`, please use the
34+
automated script as part of your PR:
35+
36+
```console
37+
npm run add-contributor
38+
```
39+
40+
Follow the prompt and commit `.all-contributorsrc` and `README.md` in the PR.
41+
If you've already added yourself to the list and are making
42+
a new type of contribution, you can run it again and select the added
43+
contribution type.
44+
45+
## Committing and Pushing changes
46+
47+
Please make sure to run the tests before you commit your changes. You can run
48+
`npm run test:update` which will update any snapshots that need updating.
49+
Make sure to include those changes (if they exist) in your commit.
50+
51+
### opt into git hooks
52+
53+
There are git hooks set up with this project that are automatically installed
54+
when you install dependencies. They're really handy, but are turned off by
55+
default (so as to not hinder new contributors). You can opt into these by
56+
creating a file called `.opt-in` at the root of the project and putting this
57+
inside:
58+
59+
```
60+
pre-commit
61+
```
62+
63+
## Help needed
64+
65+
Please checkout the [the open issues][issues]
66+
67+
Also, please watch the repo and respond to questions/bug reports/feature
68+
requests! Thanks!
69+
70+
[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
71+
[all-contributors]: https://github.com/kentcdodds/all-contributors
72+
[issues]: https://github.com/kentcdodds/dom-testing-library/issues

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
Copyright (c) 2017 Kent C. Dodds
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in all
12+
copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+
SOFTWARE.

0 commit comments

Comments
 (0)