Commit Graph

314 Commits

Author SHA1 Message Date
Gleb Bahmutov e0042a2009 Upgrade snap shot it to v6 in CLI package (#3761)
* update cli_spec

* linting

* update named snapshot to have 1 to match snap-shot-it v5

* update errors spec

* linting

* update snapshot use in download_spec

* update install_spec snapshot

* linting

* update use of snapshot in unzip_spec

* update snapshot use in verify_spec

* enable all CLI specs

* no need to skip snapshot sorting

* upgrade snap-shot-it to v6 in root

* update snap-shot-it to v6 in packages/server

* need to add build script to transpile

* update cypress_spec snapshot use with names
2019-03-21 10:39:28 -04:00
renovate[bot] 96d91e2f7f chore(deps): update dependency dtslint to version 0.5.5 🌟 (#3620)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-03-21 10:58:15 +06:30
Gleb Bahmutov 1a7f631032 Reject promise stub with an error instance (#3751)
* reject promise stub with Error instance

* pass linter
2019-03-20 09:47:13 -04:00
Jennifer Shehane d7d9e5f9fb Downgrade cachedir and commander packages back to versions that support Node 4
- snapshots have only updated whitespace 👍
2019-03-15 12:31:33 +06:30
Zach Bloomquist 5a0d8b5cfe Allow passing a list of space-separated specs to --spec (#3375)
* cli: add otherSpecs for varargs [wip]

* scripts: pass command-line args through to debugged command

* cli: parse space-delimited specs

* cli: undo unneeded

* cli: cleaned up parseVariableOpts, added warning

* cli: cleanup

* cli: add tests

* cli: glorious whitespace

* cli: a more robust test

* cli: better snapshot

* server: strip single-quotes around --spec arg

#2298
2019-03-15 00:42:46 -04:00
renovate[bot] 99877dcd56 chore(deps): update dependency @types/lodash to version 4.14.122 🌟 (#3680)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-03-11 17:16:09 +06:30
Jennifer Shehane df322605a1 Bump cachedir from 1.3.0 -> 2.1.0 (#3660)
- Breaking change: Drop support for Node.js < 6.x]
- Use os.homedir() instead of os-homedir module (reduced dependency and
size)
2019-03-06 14:20:37 -05:00
Gleb Bahmutov 83d35d3725 remove stray circleci line, more CLI types comments 2019-03-05 13:09:50 -05:00
Gleb Bahmutov f81dc7a6b2 move 3rd party types to dev dependencies in CLI NPM package (#3425)
* wip: move lodash types to dev dependencies

* move blob-util types

* move types for minimatch

* do not lint types from minimatch

* move types sinon to dev dependencies

* move sinon-chai types to dev dependencies

* update tslint

* move types bluebird to dev dependencies

* move mocha types

* move jquery types to dev dependencies

* rename moment local wrapper

* move chai and chai-jquery

* refactor code for building CLI and dealing with folders

* linting

* include types subfolders

* replace types with relative paths

* transform sinon path to relative

* linting

* do not delete d.ts files

* linting

* chore: build npm package from this branch

* add minimatch relative reference

* work around minimatch

* set sinon to be relative load

* add readme to CLI

* linting readme
2019-03-05 12:49:42 -05:00
renovate[bot] 0781e4dc92 chore(deps): update dtslint to 0.5.1 🌟 (#3611) 2019-02-28 09:24:25 -05:00
Gleb Bahmutov ecf98cfdec separate dtslint into its own CircleCI job (#3528)
* separate dtslint into its own CircleCI job

* fix indent
2019-02-28 09:07:44 -05:00
Zach Bloomquist d24285bbdd Visit with a POST and/or custom headers (#3489)
* driver, server: visit with a POST [wip]

* driver, server: allow sending body, headers, method in .visit

* driver: test: doublequotes

* driver: api cleanup, error handling

* driver, server: tests

* driver: only recognize visit(opts) if options is sole argument

* server: don't confuse options

* driver: validate method passed to 'visit'

* driver: validate that headers is an object

* driver: shows URL and not object in command log (fixes part of #678)

* cli: add new cy.visit(opts) invocation
2019-02-27 09:19:31 -08:00
Jennifer Shehane a18dac6931 fix typo in index.d.ts file (#3588) 2019-02-25 23:04:21 +00:00
renovate[bot] a9051cbb22 chore(deps): update dtslint to 0.5.0 🌟 (#3571)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-25 16:56:25 +00:00
Songyu-Wang 7a819f1b99 Reduce the number of log printed when install cypress in docker (#3504) 2019-02-22 12:04:46 +06:30
renovate[bot] 0462047f06 chore(deps): update dependency dtslint to version 0.4.9 🌟 (#3562)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-22 11:07:35 +06:30
renovate[bot] ee74bf5646 chore(deps): update dependency dtslint to version 0.4.8 🌟 (#3550)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-21 20:07:09 +06:30
renovate[bot] b6794367e0 chore(deps): update dependency dtslint to version 0.4.4 🌟 (#3533)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-20 11:21:25 +06:30
Zach Bloomquist ef9b8f7b38 Launch browsers by path: --browser /path/to/browser (#3337)
* adding multiple possible binary names for linux

* windows launcher doesn't consider "binary", so don't pass it

* adding test for multiple binary names

* Stronger typing, clearer variable names

* Stronger typing, clearer variable names

* cleanup

* cleanup

* clean up type- why isn't this being linted?

* Add more aliases (#3217)

* launcher changes to use Browser throughout, also clarifying FoundBrowser/Browser distinction

* wip

* wip

* update tests to expect objects

* removing errant debugger calls

* Fixing tests

* desktop-gui: use displayName for display

* ' -> "

* launcher: add definitions for google chrome beta and unstable

* server: fallthrough to using chrome helper

* server: changes for run mode to pick correct version

* desktop-gui: add displayName to fixtures

* server: isolating bug with runmode

* browser was a string all along

* server: re-promisify browser detection

* launcher: remove chrome-beta for now, needs some more tweaking for that to work 100 percent

* launcher: cleaning up types

* launcher: fix type comflict when filtering browsers (#3258)

* launcher: cast Windows foundbrowsers

* launcher: mapSeries -> map

* launcher: clean up launcher, change 1 call in server to match

* launcher: test that browsers contains what we like it to

* whoops

* server: accept path in runmode

* launcher: changes for detectByPath [wip]

* server: update tests to use new errors

* launcher: error message cleanup

* launcher: detectByPath working with CLI client

* launcher: detectByPath tests

* launcher: cli client for detectByPath

* server: update error msg snapshot

* cli: allow passing --browser to open mode

* server: using --browser=/path/ works in run and open mode!!

* launcher: change displayName of custom browsers

* server: find browser with highest version property by default

* launcher: update tests, clean up types

* server: fix tests

* server: fix tests

* cli: update help snapshots

* launcher: tests

* server: wip

* server, launcher: clean up errors

* server: add unit tests for events

* server: change e2e helper to support custom browser strings in stdout

* server: e2e tests for browser by path

* server: if this break that

* server: clean up and fix? tests

* decoffeeate, entypescriptify

* server: fix test

* cli: fix whitespace

* cli: remove external browser notice

* server: detect a browser to use for the e2e launch-by-path test

* server: make stackTraceLinesRe not match all sentences with 'at' in them

* server, launcher: update 'not found at path' error msg

* server: clean up browser switch

* server: customBrowserPath

* server: update snapshots that were affected by the old stackLineRe

* server: update stubs

* server: update BROWSER_NOT_FOUND_BY_PATH to use error objects

* server: backticks in snapshots break snapshots

* server: forgetting to save without formatting will be my downfall

* server: remove comment

* desktop-gui: make custom browsers chosen

* desktop-gui, launcher: update tests
2019-02-16 15:12:17 -05:00
renovate[bot] 4012dfca66 fix(deps): update yauzl to 2.10.0 🌟 (#3481)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-15 16:23:32 +06:30
renovate[bot] f1dea82141 chore(deps): update dependency nyc to version 13.3.0 🌟 (#3474)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-15 12:51:06 +06:30
renovate[bot] b1b69bd20f fix(deps): update @types/chai-jquery to 1.1.38 🌟 (#3342)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-15 12:49:46 +06:30
renovate[bot] 5c2c60d1ed fix(deps): update dependency tmp to version 0.0.33 🌟 (#3466)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-15 12:49:26 +06:30
renovate[bot] 00d2a24c8d fix(deps): update supports-color to 5.5.0 🌟 (#3464)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-02-14 15:29:29 +06:30
renovate[bot] 3b716030ff chore(deps): update @types/lodash to 4.14.121 🌟 (#3458)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-14 10:09:42 +06:30
Gleb Bahmutov 5e86622b63 add sinon stub types to window alert and confirm (#3452) 2019-02-13 13:09:24 -05:00
renovate[bot] 400bf88f9e fix(deps): update request-progress to 0.4.0 🌟 (#3445) 2019-02-13 14:45:38 +06:30
renovate[bot] 6257180051 fix(deps): update request to 2.88.0 🌟 (#3444) 2019-02-13 11:10:23 +06:30
renovate[bot] fe91e91e11 fix(deps): update moment to 2.24.0 🌟 (#3433) 2019-02-12 12:05:20 +06:30
renovate[bot] 4433b2deb5 fix(deps): update glob to 7.1.3 🌟 (#3412) 2019-02-11 18:22:34 +06:30
renovate[bot] 4776244b9f fix(deps): update extract-zip to 1.6.7 🌟 (#3410) 2019-02-11 17:30:27 +06:30
renovate[bot] 5582d7d280 fix(deps): update is-ci to 1.2.1 🌟 (#3414) 2019-02-11 17:24:20 +06:30
renovate[bot] adf8c4e1ae fix(deps): update dependency @types/lodash to version 4.14.120 🌟 (#3344)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-07 22:22:58 +06:30
renovate[bot] ca821d7776 fix(deps): update dependency commander to version 2.19.0 🌟 (#3366)
* fix(deps): update commander to 2.19.0 🌟

* Update cli snapshots to match stdout output of 'help' with less whitespace / better structured whitespace


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-02-07 22:11:14 +06:30
renovate[bot] 939e830722 fix(deps): update dependency chalk to version 2.4.2 🌟 (#3362)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-07 16:38:45 +06:30
renovate[bot] 5af5628d8a fix(deps): update dependency common-tags to version 1.8.0 🌟 (#3368)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-07 16:32:07 +06:30
renovate[bot] 438e386db7 chore(deps): update dependency mock-fs to version 4.8.0 🌟 (#3297) 2019-02-05 15:13:41 +06:30
renovate[bot] 044325a191 fix(deps): update dependency @cypress/xvfb to version 1.2.4 🌟 (#3328)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-05 15:04:12 +06:30
renovate[bot] 4e8c600b8f chore(deps): update dependency nyc to version 13.2.0 🌟 (#3325)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-05 13:19:27 +06:30
renovate[bot] aa214a7578 chore(deps): update nyc to 13.1.0 🌟 (#3299)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-02-04 17:52:39 +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
Ben Kucera ef8b240bc0 improve cache help messages snapshot more (#2625)
* snapshot more, remove execa in tests for speed

* sub-command -> command, add snapshot

* restate execa
2019-01-25 00:34:58 -05:00
Chris Breiding cb06741675 remove obselete @cypress/releaser deps (#3197) 2019-01-23 10:37:51 -05:00
Gleb Bahmutov a92d0579a1 Fix jsdoc examples and expand comments in TypeScript definition file (#3163)
* update a few comments

* update more jsdocs

* update actions examples

* update a few more docs

* more jsdoc

* disable linting jsdoc comments in index.d.ts file
2019-01-23 01:50:34 -05:00
Nicholas Boll 2e2c5af441 fix: Type definitions for .then (#3105)
Fixes #3075
2019-01-09 13:43:19 -05:00
renovate[bot] a7b88512de chore(deps): update execa-wrap to 1.4.0 🌟 (#3044) 2019-01-03 09:43:58 -05:00
Gleb Bahmutov 71429e620e Fix TypeScript Omit definition (#3031)
* test built binary and NPM against kitchensink

* try building cypress/browsers:chrome67

* implement Omit using Exclude

* bump down to chrome64

* remove this branch from building binary
2019-01-02 15:09:18 -05:00
renovate[bot] bc0daf838b chore(deps): update dtslint to 0.4.2 🌟 (#3041) 2019-01-02 14:37:03 -05:00
Thomas Rich 852176f468 https://github.com/cypress-io/cypress/issues/2975 (#2976)
Connects https://github.com/cypress-io/cypress/issues/2975
2018-12-26 23:19:13 +06:30
Gleb Bahmutov ee659b3d2b fix: set object for qs property in cy.request types, close #2305 (#2306)
* fix: set object for qs property in cy.request types, close #2305

* server whitelist callback takes request, returns boolean
2018-12-25 23:02:49 -08:00