mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-13 12:59:07 -05:00
* chore: rename errors.js -> errors.ts * refactor: type safety on errors * refactor: add err_template for consistent error formatting * fix a few system tests * fix tests; update snapshots * Fix types * normalize snapshot - remove chalk ansi colors * more unit test fixes * more system test fixes * circleci build * backtick always in stdout, fix error formatting and failing snapshots * refactor: create @packages/errors * fix import * fix import * fixing build / tests * remove extraneous file * move warnIfExplicitCiBuildId * fix build / tests * Fix * error, type fixes, documentation, standardize child process error serialization * fix import * build errors on install * wrote specs generating visual images of all errors * remove unused dep * sanitize stack traces * add image diffing - if base images don't exist, create them - if base images don't match and local, overwrite them, if in CI throw - if base images are stale and local, delete them, if in CI throw * remove Courier New + MesloLGS NF font * type fixes, remove Bluebird, general cleanup * TS Cleanup * skip typecheck on tests for now * yarn.lock * fix @types/chai version * fix yarn.lock * Different version of mocha types so it isnt patched * errors spec snapshot * CI fix * fixes * store snapshot images in circle artifacts * dont change artifact destination prefix * use Courier Prime * antialias the text * decrease pixelmatch threshold, fail in CI only when changed pixels > 100 * increase timeout * overflow: hidden, remove new Promise, add debug logging Co-Authored-By: Tim Griesser <tgriesser@gmail.com> * run unit tests w/ concurrency=1 * unique window per file * disable app hardware acceleration + use in process gpu + single process * do not do image diffing - conditionally convert html to images - store html snapshots - do not store images in git * store snapshot html * Merge branch 'tgriesser/chore/refactor-errors' of https://github.com/cypress-io/cypress into tgriesser/chore/refactor-errors * remove concurrency * fix assertion * fixing ci * Link in readme * pass the browsers to listItems * fix: build @packages/errors in CI, defer import to prevent errors locally * Merge branch 'develop' into tgriesser/chore/refactor-errors * develop: chore: fix cypress npm package artifact upload path (#20023) chore(driver): move cy.within logic into it's own file (#20036) chore: update automerge workflows (#19982) fix(selectFile): use target window's File/DataTransfer classes (#20003) chore: Update Chrome (stable) to 98.0.4758.80 and Chrome (beta) to 98.0.4758.80 (#19995) fix: Adjust ffmpeg CLI args for performance (#19983) build: allow unified to run cypress on Apple Silicon (arm64) (backport #19067 to 9.x) (#19968) * fix run-if-ci.sh * remove dead code * Mark the .html files as generated in gitattributes * fix running single error case, slice out more of the brittle stack * remove additional brittle stack line * firefox web security error * nest inside of describe * reformat and redesign errors * more error cleanup and standardization * additional formatting of errors, code cleanup, refactoring * update ansi colors to match terminal colors * cleanup remaining loose ends, update several errors, compact excess formatters * fix types * additional formatting, remove TODO's, ensure no [object Object] in output * add test for 412 server response on invalid schema * update unknown dashboard error on creating run * use fs.access instead of fs.stat for perf * added PLUGINS_FILE_NOT_FOUND error - separated out from PLUGINS_FILE_ERROR - add system tests for both cases - update snapshots - remove stack trace from PLUGINS_FILE_NOT_FOUND fka PLUGINS_FILE_ERROR * add plugins system test around plugins synchronously throwing on require * remove forcing process.cwd() to be packages/server, update affected code - this was a long needed hangover from very old code that was doing unnecessary things due to respawning electron from node and handling various entrypoints into booting cypress - this also makes the root yarn dev and dev-debug work correctly because options.cwd is set correctly now * perf: lazy load chalk * remove excessive line since the file exists but is invalid * fix types * add system test when plugins function throws a synchronous error * create new PLUGINS_INVALID_EVENT_ERROR, wire it up correctly for error template use - properly pass error instance from child to ensure proper user stack frames - move error display code into the right place * only show a single stack trace, either originalError or internal cypressError * push error html snapshots * fix tests, types * fix test * fix failing tests * fix tests * fixes lots of broken tests * more test fixes * fixes more tests * fix type checking * wip: consistent handling of interpolated values * feat: fixing up errors, added simple error comparison tool * wrapping up error formatting * Fixes for unit tests * fix PLUGINS_VALIDATION_ERROR * fix fs.readdir bug, show rows even if there's only markdown formatting [SKIP CI] * when in base-list, show full width of errors * Fix type errors * added searching and filtering for files based on error name * fix: system tests * updated NO_SPECS_FOUND error to properly join searched folder + pattern - join patterns off of process.cwd, not projectRoot - highlight original specPattern in yellow, baseDir in blue - add tests * fixes failing tests * fix test * preserve original spec pattern, display relative to projectRoot for terminal banner * make the nodeVersion path display in gray, not white * fix tests, pass right variables * fix chrome:canary snapshots * update snapshots * update snapshot * strip newlines caused by "Still waiting to connect to {browser}..." * don't remove the snapshotHtmlFolder in CI, add additional verification snapshots match to error keys symmetrically * update snapshot * update snapshot * update snapshot * update snapshot * update snapshot * update snapshot * update gitignore * fix snapshot * update snapshot html * update logic for parsing the resolve pattern matching, add tests * update snapshots * update snapshot * update snapshot * update snapshot * fix failing test * fix: error_message_spec * fix snapshot * run each variant through an it(...) so multiple failures are received * add newlines to multiline formatters, add fmt.stringify, allow format overrides * stringify invalid return values from plugins * move config validation errors into packages/errors, properly highlight and stringify values * add component testing yarn commands * fix the arrow not showing on details * fix typescript error * fixed lots of poorly written tests that weren't actually testing anything. created settings validation error when given a string validation result. * fixes tests * fixes tests, adds new error template for validating within an array list (for browser validation) * remove dupe line * fix copy for consistency, update snapshots * remove redundant errors, standardize formatting and phrasing * more formatting * remove excess snapshots * prune out excessive error snapshot html files when not in CI * add missing tests, add case for when config validation fails without a fileType * fixes test * update snapshot * update snapshot * update snapshot * sort uniqErrors + errorKeys prior to assertion - assert one by one * add system test for binding to an event with the wrong handler * fixes tests * set more descriptive errors when setting invalid plugin events, or during plugin event validation * remove duplicate PLUGINS_EVENT_ERROR, collapse into existing error * use the same multiline formatting as @packages/errors * standardize verbiage and highlighting for consistency * fix incorrect error path * fixes tests, standardized and condensed more language * Update packages/errors/src/errors.ts Co-authored-by: Ryan Manuel <ryanm@cypress.io> * Update guides/error-handling.md Co-authored-by: Ryan Manuel <ryanm@cypress.io> * Update guides/error-handling.md Co-authored-by: Ryan Manuel <ryanm@cypress.io> * added some final todo's * fix types Co-authored-by: Tim Griesser <tgriesser10@gmail.com> Co-authored-by: Tim Griesser <tgriesser@gmail.com> Co-authored-by: Ryan Manuel <ryanm@cypress.io>
252 lines
9.5 KiB
JSON
252 lines
9.5 KiB
JSON
{
|
|
"name": "cypress",
|
|
"version": "9.4.1",
|
|
"description": "Cypress.io end to end testing tool",
|
|
"private": true,
|
|
"scripts": {
|
|
"binary-build": "node ./scripts/binary.js build",
|
|
"binary-deploy": "node ./scripts/binary.js deploy",
|
|
"binary-deploy-linux": "./scripts/build-linux-binary.sh",
|
|
"binary-ensure": "node ./scripts/binary.js ensure",
|
|
"binary-purge": "node ./scripts/binary.js purge-version",
|
|
"binary-release": "node ./scripts/binary.js release",
|
|
"binary-upload": "node ./scripts/binary.js upload",
|
|
"binary-zip": "node ./scripts/binary.js zip",
|
|
"build": "lerna run build --stream --ignore create-cypress-tests && lerna run build --stream --scope create-cypress-tests",
|
|
"build-prod": "lerna run build-prod --stream --ignore create-cypress-tests && lerna run build-prod --stream --scope create-cypress-tests",
|
|
"bump": "node ./scripts/binary.js bump",
|
|
"check-node-version": "node scripts/check-node-version.js",
|
|
"check-terminal": "node scripts/check-terminal.js",
|
|
"clean": "lerna run clean --parallel --no-bail || echo 'ok, errors while cleaning'",
|
|
"clean-deps": "find . -depth -name node_modules -type d -exec rm -rf {} \\;",
|
|
"clean-untracked-files": "git clean -d -f",
|
|
"precypress:open": "yarn ensure-deps",
|
|
"cypress:open": "cypress open --dev --global",
|
|
"cypress:open:ct": "cypress open-ct --dev --global",
|
|
"precypress:open:debug": "yarn ensure-deps",
|
|
"cypress:open:debug": "node ./scripts/debug.js cypress:open",
|
|
"precypress:run": "yarn ensure-deps",
|
|
"cypress:run": "cypress run --dev",
|
|
"cypress:run:ct": "cypress run-ct --dev",
|
|
"precypress:run:debug": "yarn ensure-deps",
|
|
"cypress:run:debug": "node ./scripts/debug.js cypress:run",
|
|
"cypress:verify": "cypress verify --dev",
|
|
"dev": "node ./scripts/start.js",
|
|
"dev-debug": "node ./scripts/debug.js dev",
|
|
"docker": "./scripts/run-docker-local.sh",
|
|
"effective:circle:config": "circleci config process circle.yml | sed /^#/d",
|
|
"ensure-deps": "./scripts/ensure-dependencies.sh",
|
|
"get-next-version": "node scripts/get-next-version.js",
|
|
"postinstall": "patch-package && ./scripts/run-if-not-ci.sh yarn-deduplicate --strategy=highest && ./scripts/run-if-not-ci.sh yarn build",
|
|
"jscodeshift": "jscodeshift -t ./node_modules/js-codemod/transforms/arrow-function-arguments.js",
|
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json .",
|
|
"lint-changed": "lint-changed",
|
|
"move-binaries": "node ./scripts/binary.js move-binaries",
|
|
"npm-release": "node scripts/npm-release.js",
|
|
"prestart": "yarn ensure-deps",
|
|
"start": "cypress open --dev --global",
|
|
"stop-only": "npx stop-only --skip .cy,.publish,.projects,node_modules,dist,dist-test,fixtures,lib,bower_components,src,__snapshots__ --exclude e2e.ts,cypress-tests.ts,*only_spec.js",
|
|
"stop-only-all": "yarn stop-only --folder packages",
|
|
"pretest": "yarn ensure-deps",
|
|
"test": "yarn lerna exec yarn test --scope cypress --scope \"'@packages/{config,errors,electron,extension,https-proxy,launcher,net-stubbing,network,proxy,rewriter,runner,runner-shared,socket}'\"",
|
|
"test-debug": "lerna exec yarn test-debug --ignore \"'@packages/{desktop-gui,driver,root,static,web-config}'\"",
|
|
"pretest-e2e": "yarn ensure-deps",
|
|
"test-integration": "lerna exec yarn test-integration --ignore \"'@packages/{desktop-gui,driver,root,static,web-config}'\"",
|
|
"test-mocha": "mocha --reporter spec scripts/spec.js",
|
|
"test-mocha-snapshot": "mocha scripts/mocha-snapshot-spec.js",
|
|
"test-npm-package-release-script": "npx lerna exec --scope \"@cypress/*\" -- npx --no-install semantic-release --dry-run",
|
|
"test-s3-api": "node -r ./packages/ts/register scripts/binary/s3-api-demo.ts",
|
|
"test-system": "yarn workspace @tooling/system-tests test",
|
|
"test-scripts": "mocha -r packages/ts/register --reporter spec 'scripts/unit/**/*spec.js'",
|
|
"test-scripts-watch": "yarn test-scripts --watch --watch-extensions 'ts,js'",
|
|
"pretest-unit": "yarn ensure-deps",
|
|
"test-unit": "lerna exec yarn test-unit --ignore \"'{@packages/{desktop-gui,driver,root,static,web-config,net-stubbing,rewriter,ui-components},@cypress/{webpack-dev-server,eslint-plugin-dev}}'\"",
|
|
"pretest-watch": "yarn ensure-deps",
|
|
"test-watch": "lerna exec yarn test-watch --ignore \"'@packages/{desktop-gui,driver,root,static,web-config}'\"",
|
|
"type-check": "node scripts/type_check",
|
|
"verify:mocha:results": "node ./scripts/verify_mocha_results",
|
|
"prewatch": "yarn ensure-deps",
|
|
"watch": "lerna exec yarn watch --parallel --stream",
|
|
"prepare": "husky install"
|
|
},
|
|
"dependencies": {
|
|
"nvm": "0.0.4"
|
|
},
|
|
"devDependencies": {
|
|
"@cypress/bumpercar": "2.0.12",
|
|
"@cypress/commit-message-install": "3.1.3",
|
|
"@cypress/env-or-json-file": "2.0.0",
|
|
"@cypress/github-commit-status-check": "1.5.0",
|
|
"@cypress/questions-remain": "1.0.1",
|
|
"@cypress/request": "2.88.10",
|
|
"@cypress/request-promise": "4.2.6",
|
|
"@fellow/eslint-plugin-coffee": "0.4.13",
|
|
"@percy/cli": "1.0.0-beta.48",
|
|
"@percy/cypress": "^3.1.0",
|
|
"@semantic-release/changelog": "5.0.1",
|
|
"@semantic-release/git": "9.0.0",
|
|
"@types/bluebird": "3.5.29",
|
|
"@types/chai-enzyme": "0.6.7",
|
|
"@types/classnames": "2.2.9",
|
|
"@types/debug": "4.1.5",
|
|
"@types/enzyme-adapter-react-16": "1.0.5",
|
|
"@types/execa": "0.9.0",
|
|
"@types/fs-extra": "^8.0.1",
|
|
"@types/glob": "7.1.1",
|
|
"@types/lodash": "^4.14.168",
|
|
"@types/markdown-it": "0.0.9",
|
|
"@types/mini-css-extract-plugin": "1.2.3",
|
|
"@types/mocha": "8.0.3",
|
|
"@types/node": "14.14.31",
|
|
"@types/prismjs": "1.16.0",
|
|
"@types/react": "16.9.50",
|
|
"@types/react-dom": "16.9.8",
|
|
"@types/request-promise": "4.1.45",
|
|
"@types/sinon-chai": "3.2.3",
|
|
"@typescript-eslint/eslint-plugin": "4.18.0",
|
|
"@typescript-eslint/parser": "4.18.0",
|
|
"arg": "4.1.2",
|
|
"ascii-table": "0.0.9",
|
|
"aws-sdk": "2.814.0",
|
|
"babel-eslint": "10.1.0",
|
|
"bluebird": "3.5.3",
|
|
"bluebird-retry": "0.11.0",
|
|
"chai": "4.2.0",
|
|
"chai-as-promised": "7.1.1",
|
|
"chalk": "2.4.2",
|
|
"check-dependencies": "1.1.0",
|
|
"check-more-types": "2.24.0",
|
|
"commander": "6.2.1",
|
|
"common-tags": "1.8.0",
|
|
"conventional-recommended-bump": "6.1.0",
|
|
"debug": "^4.3.2",
|
|
"del": "3.0.0",
|
|
"electron-builder": "^22.13.1",
|
|
"electron-notarize": "^1.1.1",
|
|
"enzyme-adapter-react-16": "1.12.1",
|
|
"eslint": "7.22.0",
|
|
"eslint-plugin-cypress": "2.11.2",
|
|
"eslint-plugin-json-format": "2.0.1",
|
|
"eslint-plugin-mocha": "8.1.0",
|
|
"eslint-plugin-react": "7.22.0",
|
|
"eslint-plugin-react-hooks": "4.2.0",
|
|
"execa": "4.0.0",
|
|
"execa-wrap": "1.4.0",
|
|
"filesize": "4.1.2",
|
|
"find-package-json": "1.2.0",
|
|
"fs-extra": "8.1.0",
|
|
"gift": "0.10.2",
|
|
"glob": "7.1.6",
|
|
"gulp": "4.0.2",
|
|
"gulp-awspublish": "4.0.0",
|
|
"gulp-debug": "4.0.0",
|
|
"gulp-rename": "1.4.0",
|
|
"hasha": "5.0.0",
|
|
"http-server": "0.12.3",
|
|
"human-interval": "1.0.0",
|
|
"husky": "7.0.2",
|
|
"inquirer": "3.3.0",
|
|
"inquirer-confirm": "2.0.3",
|
|
"jest": "24.9.0",
|
|
"js-codemod": "cpojer/js-codemod",
|
|
"jscodemods": "cypress-io/jscodemods#01b546e",
|
|
"jscodeshift": "0.7.0",
|
|
"konfig": "0.2.1",
|
|
"lazy-ass": "1.6.0",
|
|
"lerna": "3.20.2",
|
|
"lint-staged": "11.1.2",
|
|
"listr2": "3.8.3",
|
|
"lodash": "^4.17.21",
|
|
"make-empty-github-commit": "cypress-io/make-empty-github-commit#4a592aedb776ba2f4cc88979055315a53eec42ee",
|
|
"minimist": "1.2.5",
|
|
"mocha": "3.5.3",
|
|
"mocha-banner": "1.1.2",
|
|
"mocha-junit-reporter": "2.0.0",
|
|
"mocha-multi-reporters": "1.1.7",
|
|
"mock-fs": "5.1.1",
|
|
"parse-github-repo-url": "1.4.1",
|
|
"patch-package": "6.4.7",
|
|
"plist": "3.0.1",
|
|
"pluralize": "8.0.0",
|
|
"postinstall-postinstall": "2.0.0",
|
|
"prefixed-list": "1.0.1",
|
|
"pretty-ms": "7.0.0",
|
|
"print-arch": "1.0.0",
|
|
"proxyquire": "2.1.3",
|
|
"semantic-release": "17.2.3",
|
|
"semantic-release-monorepo": "7.0.3",
|
|
"semver": "7.3.2",
|
|
"shelljs": "0.8.5",
|
|
"shx": "0.3.3",
|
|
"sinon": "7.3.2",
|
|
"snap-shot-it": "7.9.3",
|
|
"start-server-and-test": "1.10.8",
|
|
"stop-only": "3.0.1",
|
|
"strip-ansi": "6.0.0",
|
|
"term-to-html": "1.2.0",
|
|
"terminal-banner": "1.1.0",
|
|
"through": "2.3.8",
|
|
"ts-node": "8.3.0",
|
|
"typescript": "^4.4.4",
|
|
"yarn-deduplicate": "3.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.5.0",
|
|
"yarn": ">=1.17.3"
|
|
},
|
|
"productName": "Cypress",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/cypress-io/cypress.git"
|
|
},
|
|
"homepage": "https://github.com/cypress-io/cypress",
|
|
"bugs": {
|
|
"url": "https://github.com/cypress-io/cypress/issues"
|
|
},
|
|
"keywords": [
|
|
"automation",
|
|
"browser",
|
|
"cypress",
|
|
"cypress.io",
|
|
"e2e",
|
|
"end-to-end",
|
|
"integration",
|
|
"mocks",
|
|
"runner",
|
|
"spies",
|
|
"stubs",
|
|
"test",
|
|
"testing"
|
|
],
|
|
"workspaces": {
|
|
"packages": [
|
|
"cli",
|
|
"packages/*",
|
|
"npm/*",
|
|
"system-tests"
|
|
],
|
|
"nohoist": [
|
|
"**/webpack-preprocessor/babel-loader",
|
|
"**/webpack-batteries-included-preprocessor/ts-loader",
|
|
"**/@vue/runtime-dom",
|
|
"**/vue"
|
|
]
|
|
},
|
|
"lint-staged": {
|
|
"*.coffee": "yarn stop-only --folder",
|
|
"*.{js,jsx,ts,tsx,json,eslintrc}": "eslint --fix"
|
|
},
|
|
"resolutions": {
|
|
"**/@types/cheerio": "0.22.21",
|
|
"**/@types/enzyme": "3.10.5",
|
|
"**/@types/react": "16.9.50",
|
|
"**/jquery": "3.1.1",
|
|
"**/pretty-format": "26.4.0",
|
|
"**/socket.io-parser": "4.0.4",
|
|
"**/ua-parser-js": "0.7.24",
|
|
"@typescript-eslint/eslint-plugin": "4.18.0",
|
|
"vue-template-compiler": "2.6.12"
|
|
}
|
|
}
|