Skip to content

Commit c9a8664

Browse files
MichaelDeBoeygnapse
authored andcommitted
chore: Update dependencies (testing-library#190)
1 parent e4d61c2 commit c9a8664

File tree

7 files changed

+31
-36
lines changed

7 files changed

+31
-36
lines changed

.prettierrc

-11
This file was deleted.

.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('kcd-scripts/prettier')

.travis.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
sudo: false
21
language: node_js
32
env:
43
- FORCE_COLOR=true
5-
cache:
6-
directories:
7-
- ~/.npm
4+
cache: npm
85
notifications:
96
email: false
10-
node_js: '8'
7+
node_js:
8+
- 10.14
9+
- 12
10+
- node
1111
install: npm install
1212
script: npm run validate
1313
after_success: kcd-scripts travis-after-success
1414
branches:
15-
only: master
15+
only:
16+
- master

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
</div>
1616

17-
<hr />
17+
---
1818

1919
[![Build Status][build-badge]][build]
2020
[![Code Coverage][coverage-badge]][coverage]

package.json

+15-16
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "dist/index.js",
66
"engines": {
77
"node": ">=8",
8-
"npm": ">=6"
8+
"npm": ">=6",
9+
"yarn": ">=1"
910
},
1011
"scripts": {
1112
"format": "kcd-scripts format",
@@ -23,8 +24,7 @@
2324
},
2425
"files": [
2526
"dist",
26-
"extend-expect.js",
27-
"extend-expect.d.ts"
27+
"extend-expect.js"
2828
],
2929
"keywords": [
3030
"testing",
@@ -35,28 +35,27 @@
3535
"author": "Ernesto Garcia <[email protected]> (http://gnapse.github.io/)",
3636
"license": "MIT",
3737
"dependencies": {
38-
"@babel/runtime": "^7.5.1",
38+
"@babel/runtime": "^7.8.3",
3939
"@types/testing-library__jest-dom": "^5.0.0",
40-
"chalk": "^2.4.1",
41-
"css": "^2.2.3",
40+
"chalk": "^3.0.0",
41+
"css": "^2.2.4",
4242
"css.escape": "^1.5.1",
43-
"jest-diff": "^24.0.0",
44-
"jest-matcher-utils": "^24.0.0",
45-
"lodash": "^4.17.11",
46-
"pretty-format": "^24.0.0",
43+
"jest-diff": "^25.1.0",
44+
"jest-matcher-utils": "^25.1.0",
45+
"lodash": "^4.17.15",
46+
"pretty-format": "^25.1.0",
4747
"redent": "^3.0.0"
4848
},
4949
"devDependencies": {
50-
"jest-watch-select-projects": "^0.1.2",
51-
"jsdom": "^15.1.0",
52-
"kcd-scripts": "^1.4.0"
50+
"jest-environment-jsdom-sixteen": "^1.0.0",
51+
"jest-watch-select-projects": "^1.0.0",
52+
"jsdom": "^16.0.1",
53+
"kcd-scripts": "^4.1.0"
5354
},
5455
"eslintConfig": {
5556
"extends": "./node_modules/kcd-scripts/eslint.js",
5657
"rules": {
57-
"babel/no-invalid-this": "off",
58-
"import/prefer-default-export": "off",
59-
"import/no-unassigned-import": "off"
58+
"babel/no-invalid-this": "off"
6059
}
6160
},
6261
"eslintIgnore": [

src/__tests__/utils.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ describe('checkHtmlElement', () => {
5454

5555
it('throws for function', () => {
5656
expect(() => {
57-
checkHtmlElement(() => {}, () => {}, {})
57+
checkHtmlElement(
58+
() => {},
59+
() => {},
60+
{},
61+
)
5862
}).toThrow(HtmlElementTypeError)
5963
})
6064

src/to-be-invalid.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export function toBeValid(element) {
3939

4040
const isValid =
4141
!isElementHavingAriaInvalid(element) &&
42-
(FORM_TAGS.includes(getTag(element)) && !isElementInvalid(element))
42+
FORM_TAGS.includes(getTag(element)) &&
43+
!isElementInvalid(element)
4344

4445
return {
4546
pass: isValid,

0 commit comments

Comments
 (0)