feat: update cypress version and config (#38892)

This commit is contained in:
Mrugesh Mohapatra
2020-06-10 01:47:13 +05:30
committed by GitHub
parent fd2ca5cf40
commit 0fd8b7a6db
4 changed files with 898 additions and 891 deletions

View File

@ -14,6 +14,8 @@ jobs:
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# our .npmrc sets a default version to 0, and prevents download. This installs it.
CYPRESS_INSTALL_BINARY: '4.6.0'
name: Cypress run
runs-on: ubuntu-latest
services:
@ -24,7 +26,7 @@ jobs:
- 27017:27017
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Set up environment
run: cp sample.env .env

1
.gitignore vendored
View File

@ -111,6 +111,7 @@ coverage
# Cypress.io
cypress/videos
cypress/screenshots
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

1759
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,10 +16,13 @@
"clean:server": "shx rm -rf ./api-server/lib",
"clean:client": "cd ./client && npm run clean",
"clean:gatsby-site": "npm run clean:client",
"precypress": "node cypress-install.js",
"precypress": "node ./cypress-install.js",
"cypress": "cypress",
"cypress:install": "cypress install && echo 'for use with cypress-install.js'",
"cypress:run": "npm run cypress -- run --config baseUrl=http://localhost:8000",
"cypress:install": "cypress install && echo 'for use with ./cypress-install.js'",
"cypress:dev:run": "npm run cypress -- run --config baseUrl=http://localhost:8000",
"cypress:dev:watch": "npm run cypress -- open --config baseUrl=http://localhost:8000",
"cypress:prd:run": "npm run cypress -- run --config baseUrl=http://localhost:8000",
"cypress:prd:watch": "npm run cypress -- open --config baseUrl=http://localhost:8000",
"develop": "npm-run-all ensure-env -p develop:*",
"develop:client": "cd ./client && npm run develop",
"develop:server": "cd ./api-server && npm run develop",
@ -52,10 +55,8 @@
"start": "npm-run-all ensure-env -p develop:server serve:client",
"test": "npm-run-all -p test:*",
"test:client": "cd ./client && npm test && cd ../",
"test:client:e2e": "cd ./client && npm run e2e:ci && cd ../",
"test:curriculum": "cd ./curriculum && npm test && cd ../",
"test:guide-formatting": "node ./tools/scripts/ci/ensure-guide-formatting.js",
"test:lint": "echo 'Warning: TODO - Define Linting tests.'",
"test:search-indexing": "jest ./search-indexing",
"test:server": "cd ./api-server && npm test && cd ../",
"test:tools": "jest ./tools",
@ -64,8 +65,8 @@
"devDependencies": {
"@freecodecamp/eslint-config": "^2.0.2",
"babel-eslint": "^10.1.0",
"cross-env": "^5.2.0",
"cypress": "^3.8.3",
"cross-env": "^7.0.2",
"cypress": "^4.6.0",
"debug": "^4.1.1",
"docsify-cli": "^4.4.0",
"dotenv": "^6.2.0",
@ -76,16 +77,16 @@
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^2.0.1",
"execa": "^4.0.1",
"execa": "^4.0.2",
"faker": "^4.1.0",
"gray-matter": "^4.0.2",
"gulp": "^4.0.2",
"husky": "^4.2.5",
"jest": "^24.9.0",
"js-yaml": "^3.13.0",
"lerna": "^3.20.2",
"js-yaml": "^3.14.0",
"lerna": "^3.22.0",
"lint-staged": "^8.2.1",
"lodash": "^4.17.15",
"markdownlint": "^0.15.0",