Commit Graph

24 Commits

Author SHA1 Message Date
renovate[bot] 5ab23f022f chore(deps): update dependency @cypress/eslint-plugin-dev to version 3.3.0 🌟 (#4723)
* chore(deps): update @cypress/eslint-plugin-dev to 3.3.0 🌟

* sort json package.json files + add note to skipped tests
2019-07-16 14:21:08 +06:30
Ben Kucera fbd523615e [internal] Lint typescript, json, new eslint rules (#4449)
* temp 07/01/19 [skip ci] main lint files

* use lint-staged scripts

* fix all auto-fixable eslint errors

* manually fix lint issues in files

* temp 07/01/19 [skip ci]

* bump eslint plugin versions, update circle.yml

* [lint fix] remaining js files

* update vscode/settings.json

* add back stop-only

* use stop-only for linting .onlys

* fix verify_spec, build_spec

* update json plugin

* relint & apply corrections

* fix appveyor.yml not cleansing env vars (very bad)

* dont echo commit message in appveyor script

* retry build &

* re-add & upgrade lint-staged

* update contributing docs

* only let stop-only catch staged changes
2019-07-12 13:59:44 -04:00
Zach Bloomquist 2a1666d787 Better support for circular references in certain objects, fix patching of socket package (#4469)
* @cypress/what-is-circular@1.0.1

* bump socket.io-circular-parser to support circular refs in binary objs

* add repro for nested request

* use npx for patch-package since devDeps may not be available at build time

* build on appveyor

* keep patches in package

* Revert "build on appveyor"

This reverts commit e0d767250a.
2019-06-17 09:04:57 -04:00
Zach Bloomquist d185a74dc9 Allow circular structures to be sent over the websocket, make it an error to send circular request bodies (#4407)
* use a parser that supports circular json

* update tests to work with new socketio version

* add error message when users supply circular body to visit/request

* show the path of the circular reference detected

* Revert "use a parser that supports circular json"

This reverts commit c052f44ec8.

* add failing driver and server tests for circular objs over websocket

* use a parser that supports circular json

* add has-binary2 patch that enables circular objects to be inspected

* update socket spec

* rejectUnauthorized: false

* use @packages/socket instead of copying client source

* prevent false positive

* use commit hash for socket.io-circular-parser

* cleanup bundling of socket.io for node + browser

- keep the interfaces identical
- browser simply has less properties than the node variant

* properly import client + circularParser from socket package

* @cypress/what-is-circular

* dont require the extension, it causes gulp to hang

* fix runner tests hanging


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-06-13 17:43:59 -04:00
renovate[bot] 875186ed36 chore(deps): update dependency bin-up to version 1.2.0 🌟 (#4047)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-04-29 16:11:09 +06:30
renovate[bot] ff5c88ada1 chore(deps): pin dependency @cypress/env-or-json-file to version 2.0.0 🌟 (#3012)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-01-31 16:25:16 +06:30
Jennifer Shehane e2705e96dd Normalize headers across package READMEs [skip ci]
- update some instructions in readmes
2019-01-24 15:07:13 +06:30
Chris Breiding 637c3f12dc remove obselete core-socket dep and update readme references (#3196) 2019-01-23 10:49:41 -05:00
Chris Breiding cb06741675 remove obselete @cypress/releaser deps (#3197) 2019-01-23 10:37:51 -05:00
Chris Breiding 2a8478fc36 add dependency check pre-condition to all packages (#2580) 2018-10-15 16:42:32 -04:00
Brian Mann 8033fbf819 Issue 995 (#996)
* better explain contributing to the driver

- update npm tasks to reflect newest conventions

* better explain contributing to the desktop-gui

- update npm tasks to reflect newest conventions

* synchronize content changes

* capitalize all package readme's for consistency

* better explain contributing to the runner, synchronize content changes

* better explain contributing to the server

* synchronize content

* synchronize content

* synchronize content

* synchronize content

* synchronize content

* synchronize content

* better contribution guidelines by redirecting users to package specific readme's

* synchronize content

* fix various content mistakes

* simplify contributing

* removed dead files

* bump zunder

* lock zunder to 5.1.0
2017-12-02 18:51:42 -05:00
Chris Breiding 1ec6f7815f Create plugins API and add preprocessor plugin support (#888)
* fix broken menu specs

* extract browserify code and create preprocessor abstraction

* server: remove unused code

* server: implement logic for importing preprocessor

* server: add eslintrc and ignore test fixtures

* server: implement plugins API

* server: add node_cache module to manage clearing a package and its dependencies

* server: clear plugins file from cache to re-require it

* server: set pluginsFile to absolute path

* server: add debug logging to plugins

* server: watch pluginsFile

* server: throw the right error when requiring plugins file

* server: organize config folders and keys visually

* server: scaffold plugins file

* server: require plugins file via nodeCache.require

* server: update browserify preprocessor name and point to github for now

* server: remove redundant integration tests

* server: always scaffold plugins file, except when falsey

* server: add plugins file test to scaffold spec

* server: always provide util.fileUpdated to preprocessor

* server: update browserify-preprocessor dep

* server: fix integration tests

* server: remove redundant logic

* server: catch errors thrown synchronously by plugins function

* server: reduce chances of flakyness in async test

* driver: fix broken spec

* server: don’t check for dirname of supportFile and pluginFile when we know they’re already a directory

* driver: there is no dist

* server: update default options sent to browserify preprocessor

* server: send config into browserify instead of options

* server: add test around default preprocessor

* server: update browserify preprocessor

* server: refactor events spec to better handle multiple calls to handleEvent

* server: add tests around project:open events

* server/desktop-gui: handle errors when plugins file changes

* server: fix events spec

* server: allow any file types to be spec files

* server: validate config.pluginsFile

* server: remove link to error doc

* server: improve plugins error message

* server: simplify example plugins file

* server: on:spec:file:preprocessor -> file:preprocessor

* server: wrap plugins in a child process

* server: rename specsGlob to testFiles

* server: bump browserify-preprocessor ‘version’

* server: fix references left by merge

* server: fix incorrect function names

* server: fix plugin error serialization

* server: display error if plugins process has an uncaught exception or unhandled rejection

* server: reset domain on reset

* server: exit early on plugin error headlessly

* server: add e2e tests for plugins/preprocessors

* server: remove obselete node cache file

* server: fix integration tests

* server: log plugins error before exiting

* server: use npm version of browserify preprocessor

* server: extract string-splitting function

* socket: use path.join in spec

* server: eslint ignore scaffold files

* server: fix scaffolded plugins file links, add snapshot test

* server: if app_spec runs, cause a failure [skip ci]

- tested locally
2017-11-19 23:20:54 -05:00
Gleb Bahmutov 05210dc24a Update package readmes for #516 (#569)
* update packages/driver readme close #516 

* update packages/electron readme

* update packages/extension readme

* update packages/http-proxy readme and cross-env

* update packages/launcher readme

* update bin-up

* update reporter readme

* update runner readme

* update socket readme
2017-10-05 18:38:06 +00:00
Brian Mann 7bc35ae38a Merge branch 'driver-refactor-merge' into develop
# Conflicts:
#	circle.yml
#	packages/server/package.json
2017-08-17 14:03:31 -04:00
Gleb Bahmutov ab4fb80c9e Ingest test artifacts from CircleCI 339 (#342)
* capture test results from CLI unit tests for #339

* add test results to packages/extension

* move mocha to root

* mocha test reporter for packages/launcher

* update socket reporter

* collect server unit test results

* store test results from server integration and e2e runs

* exclude projects from .only check
2017-08-14 15:25:49 -04:00
Brian Mann 10e34c5b17 socket: bump socket.io to 1.7.4 for browserify fix 2017-08-11 14:33:42 -04:00
Gleb Bahmutov 91ec7a0dd8 Move deploy scripts (#205)
* root: move deploy scripts from server to top level scripts

* remove postinstall download stop variable

* deploy: list all dev dependencies

* working on deploy run

* WIP comment out obsolete run-sequence

* add cypress-io/cypress-example-recipes

* root: enable run all to skip package or packages by name

* deploy: move coffee lint to root

* deploy: make bump async

* deploy: WIP update deploy + build processes for monorepo

* Add cypress-io/cypress-example-module-api project build to bump

* remove commas

* Add project cypress-io/cypress-test-ci-environments to list of projects to test

* deploy: WIP refactor classes -> functional

* deploy: don't copy node_modules or prune -> just npm install

* cli: consolidate important fields into monorepo root, pull out and build

* all: cleanup package.json, remove versions, license, repo information

-move some deps to devDeps

* all: convert es5 -> es6 + fix linting

* deploy: specify files to include when copying packages for dist

* deploy: convert coffee script in place + remove coffee files
2017-06-23 10:41:37 -04:00
Gleb Bahmutov f3595761d0 all: set private true in each internal package.json 2017-06-07 16:27:00 -04:00
Gleb Bahmutov e8d6ba6fa0 all: remove individual .gitignore files (#133)
* all: remove individual .gitignore files

* remove .gitignore from docs folder
2017-06-05 17:15:35 -04:00
Brian Mann 817758e4b6 all: symlink all cypress packages in root node_modules for easy access 2017-05-31 12:51:35 -04:00
Brian Mann 2e892fb542 make package scripts consistent - fixes #43 2017-05-17 12:20:06 -04:00
Gleb Bahmutov 97fc3ef1c0 convert all test commands into single run unit tests (#14) 2017-05-15 14:48:52 -04:00
Brian Mann a971c413c1 all: remove node version for each package 2017-05-13 12:14:09 -04:00
Chris Breidng 6efcf64005 remove core- prefixes from packages 2017-04-21 10:34:19 -04:00