Skip to content

Commit

Permalink
test: add Cypress setup
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenme committed Jun 2, 2019
1 parent c9cbd2d commit 0089aaf
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

cypress/videos
cypress/screenshots
1 change: 1 addition & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@
"eslintConfig": {
"extends": "react-app",
"plugins": [
"react-hooks"
"react-hooks",
"cypress"
],
"env": {
"cypress/globals": true
},
"rules": {
"react-hooks/rules-of-hooks": "error"
}
Expand All @@ -65,6 +69,7 @@
"devDependencies": {
"cypress": "^3.3.1",
"cypress-testing-library": "^3.0.1",
"eslint-plugin-cypress": "^2.2.1",
"eslint-plugin-react-hooks": "^1.6.0",
"npm-run-all": "^4.1.5",
"react-testing-library": "^7.0.1"
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4743,6 +4743,13 @@ eslint-module-utils@^2.3.0:
debug "^2.6.8"
pkg-dir "^2.0.0"

eslint-plugin-cypress@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-2.2.1.tgz#17295d8ef76984fe05886c7c5830ba216c1f9717"
integrity sha512-WkH81MEALKhnpeRo/wWHBHR883LdkS8aFzbGAGFxiwRwik2IKBZxb/JrxbiA6+SZskXGcmdEi6rwL7xmiqo9MA==
dependencies:
globals "^11.0.1"

eslint-plugin-flowtype@2.50.1:
version "2.50.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.1.tgz#36d4c961ac8b9e9e1dc091d3fba0537dad34ae8a"
Expand Down Expand Up @@ -5637,6 +5644,11 @@ global-prefix@^3.0.0:
kind-of "^6.0.2"
which "^1.3.1"

globals@^11.0.1:
version "11.12.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==

globals@^11.1.0, globals@^11.7.0:
version "11.10.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-11.10.0.tgz#1e09776dffda5e01816b3bb4077c8b59c24eaa50"
Expand Down

1 comment on commit 0089aaf

@vercel
Copy link

@vercel vercel bot commented on 0089aaf Jun 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully aliased the URL https://hacker-tab-extension-pxnhnfurmf.now.sh to the following alias.

Please sign in to comment.