Catch env variable with reserved name CYPRESS_ENV 1621 (#1626)

* server: check CYPRESS_ENV variable when merging configs

* catch invalid CYPRESS_ENV value in CLI, close #1621

* linting

* sanitize platform in test snapshot

* linting

* update error message text

* add missing comma

* fix finally merge in JS code

* pass CLI linter

* fix log reference, should be debug

* use correct sinon reference

* update message, show first part in red

* update error message text
This commit is contained in:
Gleb Bahmutov
2019-09-23 11:59:49 -04:00
committed by GitHub
parent b5b79fc9af
commit 9f082d97ca
11 changed files with 293 additions and 51 deletions
+2 -1
View File
@@ -86,7 +86,8 @@
"shelljs": "0.8.3",
"sinon": "7.2.2",
"snap-shot-it": "7.8.0",
"spawn-mock": "1.0.0"
"spawn-mock": "1.0.0",
"strip-ansi": "4.0.0"
},
"files": [
"bin",