Skip to content

Commit 365341c

Browse files
author
Kent C. Dodds
authored
feat(deps): upgrade all deps (#38)
1 parent 06694a9 commit 365341c

File tree

8 files changed

+48
-50
lines changed

8 files changed

+48
-50
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ never done that before, that's great! Check this free short video tutorial to
1616
learn how: http://kcd.im/pull-request
1717
-->
1818

19-
* `cypress-testing-library` version:
20-
* `node` version:
21-
* `npm` (or `yarn`) version:
19+
- `cypress-testing-library` version:
20+
- `node` version:
21+
- `npm` (or `yarn`) version:
2222

2323
Relevant code or config
2424

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ merge of your pull request!
3434

3535
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
3636

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 -->
37+
- [ ] Documentation
38+
- [ ] Tests
39+
- [ ] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
4140

4241
<!-- feel free to add additional comments -->

CONTRIBUTING.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@ Thanks for being willing to contribute!
2727
> branch. Whenever you want to update your version of `master`, do a regular
2828
> `git pull`.
2929
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-
4530
## Committing and Pushing changes
4631
4732
Please make sure to run the tests before you commit your changes. You can run
@@ -68,5 +53,4 @@ Also, please watch the repo and respond to questions/bug reports/feature
6853
requests! Thanks!
6954
7055
[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
71-
[all-contributors]: https://github.com/kentcdodds/all-contributors
7256
[issues]: https://github.com/kentcdodds/cypress-testing-library/issues

other/CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
2626
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
"precommit": "kcd-scripts precommit",
2727
"dtslint": "dtslint typings"
2828
},
29+
"husky": {
30+
"hooks": {
31+
"pre-commit": "kcd-scripts pre-commit"
32+
}
33+
},
2934
"files": [
3035
"dist",
3136
"add-commands.js",
@@ -44,14 +49,15 @@
4449
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
4550
"license": "MIT",
4651
"dependencies": {
52+
"@babel/runtime": "^7.4.3",
4753
"dom-testing-library": "^3.12.4"
4854
},
4955
"devDependencies": {
50-
"cypress": "3.1.1",
51-
"dtslint": "^0.3.0",
52-
"kcd-scripts": "^0.37.0",
56+
"cypress": "3.2.0",
57+
"dtslint": "^0.6.0",
58+
"kcd-scripts": "^1.1.3",
5359
"npm-run-all": "^4.1.2",
54-
"serve": "^10.0.0",
60+
"serve": "^11.0.0",
5561
"typescript": "^3.1.6",
5662
"wait-port": "^0.2.2"
5763
},

src/__tests__/__snapshots__/commands.js.snap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,22 @@ Array [
3434
"getAllByDisplayValue",
3535
"getAllByRole",
3636
"getByRole",
37+
"findByLabelText",
38+
"findAllByLabelText",
39+
"findByPlaceholderText",
40+
"findAllByPlaceholderText",
41+
"findByText",
42+
"findAllByText",
43+
"findByAltText",
44+
"findAllByAltText",
45+
"findByTitle",
46+
"findAllByTitle",
47+
"findByDisplayValue",
48+
"findAllByDisplayValue",
49+
"findByRole",
50+
"findAllByRole",
51+
"findByTestId",
52+
"findAllByTestId",
3753
"queryByPlaceholderText",
3854
"queryAllByPlaceholderText",
3955
"queryByTestId",

src/index.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@ const commands = Object.keys(queries).map(queryName => {
1414
const lastArg = args[args.length - 1]
1515
const defaults = getDefaultCommandOptions()
1616
const waitOptions =
17-
typeof lastArg === 'object'
18-
? Object.assign({}, defaults, lastArg)
19-
: defaults
17+
typeof lastArg === 'object' ? {...defaults, ...lastArg} : defaults
2018

2119
const queryImpl = queries[queryName]
2220
const baseCommandImpl = doc => {
2321
const container = getContainer(waitOptions.container || doc)
24-
return waitForElement(
25-
() => queryImpl(container, ...args),
26-
Object.assign({}, waitOptions, {
27-
container,
28-
}),
29-
)
22+
return waitForElement(() => queryImpl(container, ...args), {
23+
...waitOptions,
24+
container,
25+
})
3026
}
3127
let commandImpl
3228
if (

src/utils.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ function getContainer(container) {
1313
return getFirstElement(container)
1414
}
1515

16-
export {
17-
getFirstElement,
18-
getContainer,
19-
}
16+
export {getFirstElement, getContainer}
2017

2118
/* globals Cypress, cy */

0 commit comments

Comments
 (0)