From c9a8664c5f583ebb726ee82e314b309856941b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Fri, 24 Jan 2020 02:40:24 +0100 Subject: [PATCH] chore: Update dependencies (#190) --- .prettierrc | 11 ----------- .prettierrc.js | 1 + .travis.yml | 13 +++++++------ README.md | 2 +- package.json | 31 +++++++++++++++---------------- src/__tests__/utils.js | 6 +++++- src/to-be-invalid.js | 3 ++- 7 files changed, 31 insertions(+), 36 deletions(-) delete mode 100644 .prettierrc create mode 100644 .prettierrc.js diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index f3685197..00000000 --- a/.prettierrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "printWidth": 80, - "tabWidth": 2, - "useTabs": false, - "semi": false, - "singleQuote": true, - "trailingComma": "all", - "bracketSpacing": false, - "jsxBracketSameLine": false, - "proseWrap": "always" -} diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..4679d9bf --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1 @@ +module.exports = require('kcd-scripts/prettier') diff --git a/.travis.yml b/.travis.yml index 6b0969d6..ea153906 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,16 @@ -sudo: false language: node_js env: - FORCE_COLOR=true -cache: - directories: - - ~/.npm +cache: npm notifications: email: false -node_js: '8' +node_js: + - 10.14 + - 12 + - node install: npm install script: npm run validate after_success: kcd-scripts travis-after-success branches: - only: master + only: + - master diff --git a/README.md b/README.md index 411255a1..ff7a06b2 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ -
+--- [![Build Status][build-badge]][build] [![Code Coverage][coverage-badge]][coverage] diff --git a/package.json b/package.json index 2936709f..e1a8403e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "dist/index.js", "engines": { "node": ">=8", - "npm": ">=6" + "npm": ">=6", + "yarn": ">=1" }, "scripts": { "format": "kcd-scripts format", @@ -23,8 +24,7 @@ }, "files": [ "dist", - "extend-expect.js", - "extend-expect.d.ts" + "extend-expect.js" ], "keywords": [ "testing", @@ -35,28 +35,27 @@ "author": "Ernesto Garcia (http://gnapse.github.io/)", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.5.1", + "@babel/runtime": "^7.8.3", "@types/testing-library__jest-dom": "^5.0.0", - "chalk": "^2.4.1", - "css": "^2.2.3", + "chalk": "^3.0.0", + "css": "^2.2.4", "css.escape": "^1.5.1", - "jest-diff": "^24.0.0", - "jest-matcher-utils": "^24.0.0", - "lodash": "^4.17.11", - "pretty-format": "^24.0.0", + "jest-diff": "^25.1.0", + "jest-matcher-utils": "^25.1.0", + "lodash": "^4.17.15", + "pretty-format": "^25.1.0", "redent": "^3.0.0" }, "devDependencies": { - "jest-watch-select-projects": "^0.1.2", - "jsdom": "^15.1.0", - "kcd-scripts": "^1.4.0" + "jest-environment-jsdom-sixteen": "^1.0.0", + "jest-watch-select-projects": "^1.0.0", + "jsdom": "^16.0.1", + "kcd-scripts": "^4.1.0" }, "eslintConfig": { "extends": "./node_modules/kcd-scripts/eslint.js", "rules": { - "babel/no-invalid-this": "off", - "import/prefer-default-export": "off", - "import/no-unassigned-import": "off" + "babel/no-invalid-this": "off" } }, "eslintIgnore": [ diff --git a/src/__tests__/utils.js b/src/__tests__/utils.js index 11b7c4dc..6410808b 100644 --- a/src/__tests__/utils.js +++ b/src/__tests__/utils.js @@ -54,7 +54,11 @@ describe('checkHtmlElement', () => { it('throws for function', () => { expect(() => { - checkHtmlElement(() => {}, () => {}, {}) + checkHtmlElement( + () => {}, + () => {}, + {}, + ) }).toThrow(HtmlElementTypeError) }) diff --git a/src/to-be-invalid.js b/src/to-be-invalid.js index ab1d6ad1..388c9f63 100644 --- a/src/to-be-invalid.js +++ b/src/to-be-invalid.js @@ -39,7 +39,8 @@ export function toBeValid(element) { const isValid = !isElementHavingAriaInvalid(element) && - (FORM_TAGS.includes(getTag(element)) && !isElementInvalid(element)) + FORM_TAGS.includes(getTag(element)) && + !isElementInvalid(element) return { pass: isValid,