Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Native Events #2436

Closed
wants to merge 255 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
c5e2070
click mostly working
kuceb Oct 24, 2018
1e5c003
remove babelify code [skip ci]
kuceb Oct 24, 2018
bab30d7
add keyhole to native clicks
kuceb Oct 26, 2018
246b58f
Merge remote-tracking branch 'origin/develop' into issue-311
kuceb Nov 9, 2018
b79af06
temp 11/09/18
kuceb Nov 9, 2018
1bec79a
decaf
kuceb Nov 9, 2018
36d60ff
decaffeinate: Rename files
kuceb Nov 9, 2018
44c7ba4
decaffeinate: convert files
kuceb Nov 14, 2018
c42a22b
Merge branch 'decaf-issue-311' into temp-311-done
kuceb Nov 15, 2018
8d6efcc
decaffeinate: Rename selection.coffee from .coffee to .js
kuceb Nov 15, 2018
cb92153
decaffeinate: Convert selection.coffee to JS
kuceb Nov 15, 2018
3598821
decaffeinate: Run post-processing cleanups on selection.coffee
kuceb Nov 15, 2018
979a99a
Merge branch 'decaf-issue-311' into issue-311
kuceb Nov 15, 2018
8fa2af1
delete selection.js
kuceb Nov 15, 2018
1e4637d
decaffeinate: Rename selection.coffee from .coffee to .js
kuceb Nov 15, 2018
32c91c6
decaffeinate: Convert selection.coffee to JS
kuceb Nov 15, 2018
3470e18
decaffeinate: Run post-processing cleanups on selection.coffee
kuceb Nov 15, 2018
cf02956
temp
kuceb Nov 21, 2018
913ccac
temp 11/28/18
kuceb Nov 28, 2018
9bc2ff7
native click and type [skip ci]
kuceb Dec 6, 2018
c1b761e
fix programmatic blur events, allow typing into currently focused, fi…
kuceb Dec 22, 2018
def6578
intercept .blur
kuceb Dec 27, 2018
afa9af8
reference issues in tests
kuceb Jan 2, 2019
805a86b
add tests, escapse strings for console
kuceb Jan 14, 2019
aa40b4d
add comment about tests in logger.js
kuceb Jan 14, 2019
cdfb1d0
fix undefined prop bug
kuceb Jan 14, 2019
6440c05
fix broken test
kuceb Jan 14, 2019
afc2ffb
decaffeinate: rename click, keyboard, mouse
kuceb Jan 3, 2019
d1f758f
decaffeinate: Convert click.coffee to JS
kuceb Dec 28, 2018
7753277
decaffeinate: Run post-processing cleanups on click.coffee
kuceb Dec 28, 2018
d5fd549
decaffeinate: Rename click_spec.coffee from .coffee to .js
kuceb Jan 4, 2019
acc81f7
decaffeinate: Convert click_spec.coffee to JS
kuceb Jan 4, 2019
cb2c11c
decaffeinate: Run post-processing cleanups on click_spec.coffee
kuceb Jan 4, 2019
d208fb5
decaffeinate: Rename click.coffee from .coffee to .js
kuceb Dec 28, 2018
37dd0f6
decaffeinate: Convert click.coffee to JS
kuceb Dec 28, 2018
ceec9d3
decaffeinate: Run post-processing cleanups on click.coffee
kuceb Dec 28, 2018
ac6e347
decaffeinate: Rename mouse.coffee from .coffee to .js
kuceb Dec 28, 2018
c442eab
decaffeinate: Convert mouse.coffee to JS
kuceb Dec 28, 2018
a95bd7c
decaffeinate: Run post-processing cleanups on mouse.coffee
kuceb Dec 28, 2018
8c28e0b
decaffeinate: Rename keyboard.coffee from .coffee to .js
kuceb Dec 28, 2018
501843b
decaffeinate: Convert keyboard.coffee to JS
kuceb Dec 28, 2018
c4749b8
decaffeinate: Run post-processing cleanups on keyboard.coffee
kuceb Dec 28, 2018
1495901
update click to send all necessary events
kuceb Jan 2, 2019
2b77127
add pointerevents, handle preventDefault
kuceb Jan 3, 2019
ca391da
move keyboard, mouse under cy/
kuceb Jan 14, 2019
fd291c7
recalculate coords after "nudge" scroll
kuceb Jan 15, 2019
9555894
fix corrupting test in click_spec
kuceb Jan 15, 2019
c25cfa1
finish moving keyboard/mouse to cy/
kuceb Jan 16, 2019
87515d4
remove .only from type_spec
kuceb Jan 16, 2019
f871b82
fix up click_spec, fix edge cases
kuceb Jan 17, 2019
15593de
add "be.focused" to chai_jquery
kuceb Jan 24, 2019
69eb24d
add comment explaining the mess
kuceb Jan 24, 2019
e513ff1
add type definitions
kuceb Jan 24, 2019
94712b3
Merge remote-tracking branch 'origin/issue-97-focus-assertion' into i…
kuceb Jan 25, 2019
f932b13
refactor assertion to use jquery assertion
kuceb Jan 25, 2019
34b52d3
remove trailing whitespace
jennifer-shehane Jan 25, 2019
47f03a8
add test for multiple elements, update typedefs
kuceb Jan 25, 2019
314e0f1
fix failing tests: not.be.visible -> not.exist
kuceb Jan 25, 2019
8d3ace6
allow should(not.be.visible) for failed selectors
kuceb Jan 30, 2019
ab14758
remove unrelated visibility changes
kuceb Jan 30, 2019
b401c32
Merge remote-tracking branch 'origin/develop' into issue-97-focus-ass…
kuceb Jan 31, 2019
763066a
extract only focus assertion
kuceb Jan 31, 2019
835596e
Revert "Merge remote-tracking branch 'origin/develop' into issue-97-f…
kuceb Jan 31, 2019
b2e23d2
Merge remote-tracking branch 'origin/issue-97-focus-assertion' into i…
kuceb Jan 31, 2019
b9f1b91
temp 02/01/19
kuceb Feb 2, 2019
63e68cb
polish for review
kuceb Feb 4, 2019
255c0e8
play nice with consoleProps for cy.type
kuceb Feb 4, 2019
780ed1a
add dblclick + tests
kuceb Feb 7, 2019
cdb464e
rightClick, focus test changes
kuceb Feb 7, 2019
759cfdc
Merge remote-tracking branch 'origin/click-command-focus' into issue-…
kuceb Feb 7, 2019
34aaea0
Revert "rightClick, focus test changes"
kuceb Feb 7, 2019
2b21a8b
temp 02/07/19
kuceb Feb 7, 2019
5683273
add rightclick, fix trigger coords, add retry for flaky tests, add jq…
kuceb Feb 13, 2019
17cfd39
add rightclick, fix trigger coords, add retry for flaky tests, add jq…
kuceb Feb 13, 2019
8bee37c
add custom matchers helper, fix trigger, update test
kuceb Feb 14, 2019
ba8d9da
remove only
kuceb Feb 15, 2019
ab1343d
add retries to flaky tests, remove debugging code
kuceb Feb 15, 2019
e36e2c3
fix leaking defaultCommandTimeout
kuceb Feb 15, 2019
be09673
fix duplicate chai declaration
kuceb Feb 18, 2019
50ed3e3
fix deps
kuceb Feb 18, 2019
5633145
Merge remote-tracking branch 'origin/issue-2957' into issue-311
kuceb Feb 19, 2019
ec2fcf6
base off simulated mouse fixes
kuceb Feb 19, 2019
4d957c6
fix type.js, fix deps
kuceb Feb 20, 2019
bebcde6
temp 04/18/19 [skip ci] click_spec passing
kuceb Apr 18, 2019
cd8ff0b
temp 04/22/19 [skip ci] actionability accept more options, designmode…
kuceb Apr 22, 2019
0d6fcfa
Add files via upload
kuceb Apr 23, 2019
dcb243a
temp 04/23/19 [skip ci] simulated default actions, change events corr…
kuceb Apr 23, 2019
17578c6
Merge remote-tracking branch 'origin/issue-311' into issue-311
kuceb Apr 23, 2019
e94a6f5
temp 04/24/19 [skip ci] simulated/native handle singlevaluechange inp…
kuceb Apr 24, 2019
145e4fe
add webpack
kuceb May 2, 2019
cf2a231
fix build proccess
kuceb May 2, 2019
76cd436
fix reporter build and test
kuceb May 8, 2019
cd55666
fix reporter test .css
kuceb May 8, 2019
7fe5fbe
use apply(window, ...) since strict mode in webpack
kuceb May 13, 2019
7244966
temp 05/13/19 [skip ci] resolver
kuceb May 14, 2019
b77ac36
temp 05/14/19 [skip ci] webpack w/ root level symlinks
kuceb May 14, 2019
cad7fe4
run ci
kuceb May 14, 2019
09cea7b
minor fixes
kuceb May 14, 2019
aad6ead
fix link-packages script
kuceb May 14, 2019
1576309
hopefully fix mac build
kuceb May 14, 2019
8e5de4a
re-add build-prod script in reporter
kuceb May 14, 2019
2838223
fix typo in link-packages script
kuceb May 14, 2019
32f9c30
Merge branch 'develop' into webpack-runner
kuceb May 14, 2019
ae68f6b
fix lint errors
kuceb May 14, 2019
25cbb3e
fix node-version
kuceb May 14, 2019
8a11acf
namespace files in webpack
kuceb May 14, 2019
f48a04f
bust circle ci cache
kuceb May 14, 2019
03c173c
bust circle ci cache 2
kuceb May 14, 2019
1e84ca4
remove deps
kuceb May 14, 2019
8049ea4
bust circle ci cache 3
kuceb May 14, 2019
71827f9
bust circle ci cache (launcher)
kuceb May 14, 2019
8b328cd
ok circleci, you win. I will change all the cache keys
kuceb May 14, 2019
030f407
update snapshot: not sure why added stack lines
kuceb May 14, 2019
0621c9c
add mocha to reporter devDeps
kuceb May 14, 2019
556676a
separate build file for reporter
kuceb May 15, 2019
a2e5680
remove unneeded code
kuceb May 15, 2019
52b3f49
node-sass-globbing use relative imports for appveyor
kuceb May 15, 2019
42fb24d
add debugging for appveyor failure
kuceb May 15, 2019
f7a747b
node-sass-globbing force unix paths for windows
kuceb May 15, 2019
819f8b4
node-sass-globbing force unix paths for windows 2
kuceb May 15, 2019
d6f5a15
node-sass-globbing force unix paths for windows in runner
kuceb May 15, 2019
4bdeb03
run ci
kuceb May 15, 2019
bbfa516
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb May 15, 2019
6a0b69e
add checksum to packages caches
kuceb May 15, 2019
ebd37eb
bust circle ci cache (sub packages)
kuceb May 15, 2019
756cc6d
Merge branch 'develop' into webpack-runner
kuceb May 16, 2019
a371737
testing code for appveyor env vars
kuceb May 17, 2019
701ed0d
Merge remote-tracking branch 'origin/develop' into fix-appveyor-build…
kuceb May 17, 2019
be54ae6
fix appveyor env vars for branchname
kuceb May 17, 2019
bef2b7f
fix binary build script, smoke test catch errors, include pkg mains
kuceb May 20, 2019
97c9965
Merge branch 'fix-appveyor-build-script-only-on-develop' into webpack…
kuceb May 20, 2019
be1858b
build binary in appveyor for this branch
kuceb May 20, 2019
130130e
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb May 20, 2019
be68a88
fix binary unit test, revert mocha upgrade in root, fix e2e specs
kuceb May 20, 2019
beffd6e
statically replace symlinks at build time, add test, remove proxy pac…
kuceb May 21, 2019
bec4638
oops, update snapshot
kuceb May 21, 2019
be85fc5
bump circle packages cache
kuceb May 21, 2019
bebe19b
fix path.win32 on windows, add test for it
kuceb May 21, 2019
a56f6e5
Merge branch 'develop' into webpack-runner
kuceb May 21, 2019
fa9043a
for some reason packages ci cache is not including `rebuild-node-sass…
kuceb May 22, 2019
d2ad35d
emit during webpack-dev-server watch mode
kuceb May 22, 2019
16ff7b1
temp 05/22/19 [skip ci]
kuceb May 22, 2019
be48969
try revert circle.yml
kuceb May 22, 2019
ea39c18
Merge branch 'develop' of github.com:cypress-io/cypress into webpack-…
kuceb May 22, 2019
be125b8
try revert everything
kuceb May 22, 2019
31d406d
Revert "try revert everything"
kuceb May 22, 2019
be40ea2
no circle cache now
kuceb May 22, 2019
3ca79ce
Merge branch 'webpack-runner' into issue-311
kuceb May 22, 2019
cafea7b
remove logging in reporter build
kuceb May 22, 2019
cafe318
Merge branch develop of github.com:cypress-io/cypress into webpack-ru…
kuceb May 22, 2019
f5ea47c
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb May 22, 2019
88001b9
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb May 22, 2019
cafedfa
make build scripts DRY
kuceb May 28, 2019
cafe52b
fix missing fonts, better watch mode
kuceb May 28, 2019
cafe9e6
use webpack --progress in watch mode
kuceb May 28, 2019
69296cf
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb May 28, 2019
cafedb2
move webpack config files into dedicated package
kuceb May 29, 2019
cafeab3
build desktop-gui with webpack, use relative scss url()s
kuceb May 29, 2019
cafe6ac
add timings info, fix configs
kuceb May 29, 2019
cafe978
enable sourcemaps "eval", fix desktopgui test
kuceb May 30, 2019
cafe152
try 2: fix desktopgui test
kuceb May 30, 2019
cafec8c
fix lint
kuceb May 30, 2019
cafef88
fix snapshot (very minor do not worry)
kuceb May 30, 2019
24f7dc5
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb May 30, 2019
cafefa8
code cleanup
kuceb May 30, 2019
cafee99
try disable devtool
kuceb May 30, 2019
cafeb01
remove cypress:// devtool sourceURL mapping to prevent cross-domain o…
kuceb May 30, 2019
cafedc7
re-enable eval sourcemap in dev and prod
kuceb May 30, 2019
cafe68e
code cleanup
kuceb May 30, 2019
cafee13
refactor node-jsdom setup for tests
kuceb May 30, 2019
8256a57
re-enable sourceURL protocol, enable crossorigin script on runner to …
kuceb May 31, 2019
459ad32
smoke tests for static assets in binary build script, disable sourceU…
kuceb May 31, 2019
4481f80
use cross-env for desktop-gui
kuceb Jun 1, 2019
08af40a
desktop-dui: expect development NODE_ENV during build script (as has …
kuceb Jun 1, 2019
55e11ad
fix build script unit test
kuceb Jun 1, 2019
27a14f4
fix build script unit test for real
kuceb Jun 1, 2019
c8976a8
fix sourcemaps for dev/prod, add comments, add build static asset tests
kuceb Jun 4, 2019
3bd7b04
add cross-env to runner devDeps
kuceb Jun 4, 2019
ee84009
fix unit tests for build binary script
kuceb Jun 4, 2019
60049ea
fix whitespace
kuceb Jun 4, 2019
f44fbd9
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb Jun 4, 2019
c915774
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb Jun 5, 2019
432e2a6
temp 06/07/19 [skip ci]
kuceb Jun 7, 2019
bf076e6
decaffeinate selection.js
kuceb Jun 12, 2019
8a2cb30
support linting typescript
kuceb Jun 12, 2019
5183ceb
temp 06/12/19 [skip ci] fix linting
kuceb Jun 12, 2019
043b9d5
support linting typescript
kuceb Jun 12, 2019
b30c14d
use latest version of @typescript-eslint
kuceb Jun 12, 2019
830b287
better eslintrc, eslintignore
kuceb Jun 12, 2019
b391d39
lint all the things
kuceb Jun 12, 2019
3e8b093
lint all the things(typescript)
kuceb Jun 12, 2019
9692861
fix lint script in ci
kuceb Jun 12, 2019
da90576
fix linting cli/types and coffeescript
kuceb Jun 13, 2019
e9dc70a
remove subpackages "lint" scripts
kuceb Jun 13, 2019
41e82cc
remove un-needed dep
kuceb Jun 13, 2019
be920fb
rename lint-typescript job to more accurate name
kuceb Jun 13, 2019
bb28e91
rename lint-typescript job to more accurate name pt 2
kuceb Jun 13, 2019
e9fab04
add postcss autoprefixer + staticAsset tets
kuceb Jun 13, 2019
c578fa4
add eslintrc to scripts/unit
kuceb Jun 13, 2019
17ac7dc
tabs -> spaces
kuceb Jun 13, 2019
2c7f1eb
tabs -> spaces
kuceb Jun 13, 2019
b27e44e
tabs -> spaces
kuceb Jun 13, 2019
4ea9c0f
Merge branch 'lint-typescript' into issue-311
kuceb Jun 13, 2019
1a8316d
temp 06/13/19 [skip ci]
kuceb Jun 13, 2019
598b187
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb Jun 13, 2019
9fa99f9
Merge branch 'lint-typescript' into webpack-runner-lint-typescript
kuceb Jun 13, 2019
7caaee7
Merge branch 'webpack-runner-lint-typescript' into issue-311
kuceb Jun 13, 2019
a63487b
Revert "temp 06/13/19 [skip ci]"
kuceb Jun 13, 2019
1b31869
temp 06/13/19 [skip ci] merge in typescript-lint, webpack runner, spe…
kuceb Jun 13, 2019
c3fbc19
fix pre-commit lint hooks
kuceb Jun 13, 2019
7ddc329
fix pre-commit lint hooks
kuceb Jun 13, 2019
098d08f
fix binary/util scripts
kuceb Jun 13, 2019
b90f10e
Merge branch 'webpack-runner' into issue-311
kuceb Jun 13, 2019
fdc2bc6
fix .prettierignore
kuceb Jun 13, 2019
c426994
Merge branch 'lint-typescript' into webpack-runner-lint-typescript
kuceb Jun 13, 2019
a5aafff
temp 06/14/19 [skip ci] spec modules
kuceb Jun 14, 2019
4352dc9
fix testStaticAssets in build script
kuceb Jun 14, 2019
7d1396d
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb Jun 14, 2019
250beba
Merge branch 'webpack-runner' into webpack-runner-lint-typescript
kuceb Jun 14, 2019
f2199f6
Merge branch 'webpack-runner-lint-typescript' into issue-311
kuceb Jun 14, 2019
a4d49b0
fix extension requiring node socket
kuceb Jun 14, 2019
623a49a
Merge branch 'webpack-runner' into webpack-runner-lint-typescript
kuceb Jun 14, 2019
404a7cf
Merge branch 'webpack-runner-lint-typescript' into issue-311
kuceb Jun 14, 2019
c4002ab
fix unit-test for binary build script
kuceb Jun 14, 2019
8a6d48b
fix unit test for runner/reporter
kuceb Jun 14, 2019
1e3e773
Merge remote-tracking branch 'origin/develop' into lint-typescript
kuceb Jun 14, 2019
6ab3c78
exclude transpiled .js files from eslint
kuceb Jun 15, 2019
2b4bf8a
Merge remote-tracking branch 'origin/develop' into lint-typescript
kuceb Jun 17, 2019
25383ea
Merge remote-tracking branch 'origin/develop' into webpack-runner
kuceb Jun 17, 2019
f34beb7
Merge branch 'lint-typescript' into webpack-runner-lint-typescript
kuceb Jun 17, 2019
6e66663
Merge branch 'webpack-runner-lint-typescript' into issue-311
kuceb Jun 17, 2019
723e256
remove only
kuceb Jun 17, 2019
c110121
temp 06/17/19 [skip ci] eslint changes
kuceb Jun 17, 2019
e3afb5d
add rule: function-paren-newline:consistent
kuceb Jun 17, 2019
d6523ce
Merge branch 'lint-typescript' into issue-311
kuceb Jun 17, 2019
2c35a56
lint files
kuceb Jun 17, 2019
56c4e84
temp 06/17/19 [skip ci] foo
kuceb Jun 17, 2019
c5e9bbf
Merge remote-tracking branch 'origin/develop' into lint-typescript
kuceb Jun 17, 2019
a3f1b66
temp 06/17/19 [skip ci]
kuceb Jun 17, 2019
ebd35f4
remove un-needed eslintignore rules
kuceb Jun 17, 2019
6654f9d
Merge remote-tracking branch 'origin/develop' into lint-typescript
kuceb Jun 17, 2019
9a36c8f
bump pkg version 'eslint-plugin-cypress-dev'
kuceb Jun 18, 2019
6c94290
lint files
kuceb Jun 18, 2019
20d234e
Merge remote-tracking branch 'origin/develop' into lint-typescript
kuceb Jun 18, 2019
fcf8cba
Merge branch 'lint-typescript' into webpack-runner-lint-typescript
kuceb Jun 18, 2019
71172a8
Merge branch 'webpack-runner' into webpack-runner-lint-typescript
kuceb Jun 18, 2019
cb1411a
Merge branch 'webpack-runner-lint-typescript' into issue-311
kuceb Jun 18, 2019
92c9d36
temp 06/18/19 [skip ci] resposition HEAD
kuceb Jun 18, 2019
6f18c12
foo only
kuceb Jun 18, 2019
307c052
Merge remote-tracking branch 'origin/develop' into issue-311
kuceb Jul 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
__snapshots__
**/__snapshots__
**/build
**/cypress/fixtures
**/dist
**/dist-test
**/node_modules
**/support/fixtures
**/test/fixtures
**/vendor

# cli/types is linted by tslint/dtslint
cli/types
# packages/example is not linted (think about changing this)
packages/example

packages/extension/test/helpers/background.js
packages/server/lib/scaffold/plugins/index.js
packages/server/lib/scaffold/support/index.js
packages/server/lib/scaffold/support/commands.js
packages/server/test/fixtures
packages/example/cypress
84 changes: 41 additions & 43 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,71 +1,69 @@
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:cypress-dev/general"
],
"rules": {
"no-multiple-empty-lines": ["error", { "max": 1 } ],
"no-else-return": [ "error", { "allowElseIf": false } ],
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"no-unneeded-ternary": ["error"],
"array-bracket-newline": ["error", "consistent"],
"arrow-body-style": ["error", "always"],
"padding-line-between-statements": [
"brace-style": [
"error",
"1tbs",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": [
"const",
"let",
"var",
"if",
"while",
"export",
"cjs-export",
"import",
"cjs-import"
],
"next": "*"
},
"allowSingleLine": false
}
],
"no-multiple-empty-lines": [
"error",
{
"blankLine": "any",
"prev": [
"const",
"let",
"var",
"import",
"cjs-import"
],
"next": [
"const",
"let",
"var",
"import",
"cjs-import"
]
"max": 1
}
],
"function-paren-newline": [
"error",
"consistent"
]
},
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"legacyDecorators": true
}
},
"overrides": [
{
"files": [
"**/*.jsx"
"*.ts"
],
"rules": {
"arrow-body-style": "off"
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": [
"error"
],
"semi": "off",
"@typescript-eslint/semi": [
"error",
"never"
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none"
},
"singleline": {
"delimiter": "comma"
}
}
]
}
}
]
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/*

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ When you edit files, you can quickly fix all changed files before committing usi
npm run lint-changed
```

When committing files, we run Git pre-commit hook to fix the staged JS files. See the `precommit-lint` script in [package.json](package.json). This might change JS files and you would need to commit the changes again.
When committing files, we run Git pre-commit hook to fix the staged and unstaged JS files. See the `precommit-lint` script in [package.json](package.json). This might change JS files and you would need to commit the changes again.

### Tests

Expand Down
112 changes: 112 additions & 0 deletions __snapshots__/packages-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
exports['packages can copy files from package.json 1'] = {
"[cwd]": {
"packages": {
"coffee": {
"package.json": "{\"main\":\"src/main.js\", \"name\": \"foo\", \"files\": [\"lib\"]}",
"src": {
"main.js": "console.log()"
},
"lib": {
"foo.js": "{}"
}
}
}
},
"tmp": {
"packages": {
"coffee": {
"package.json": "{\"main\":\"src/main.js\", \"name\": \"foo\", \"files\": [\"lib\"]}",
"src": {
"main.js": "console.log()"
},
"lib": {
"foo.js": "{}"
}
}
}
}
}

exports['transformRequires can find and replace symlink requires 1'] = {
"[cwd]": {
"build": {
"linux": {
"Cypress": {
"resources": {
"app": {
"packages": {
"foo": {
"package.json": "{\"main\":\"src/main.js\", \"name\": \"foo\", \"files\": [\"lib\"]}",
"src": {
"main.js": "console.log()"
},
"lib": {
"foo.js": "require(\"../../bar/src/main\")"
}
},
"bar": {
"package.json": "{\"main\":\"src/main.js\", \"name\": \"foo\", \"files\": [\"lib\"]}",
"src": {
"main.js": "console.log()"
},
"lib": {
"foo.js": "require(\"../../foo/lib/somefoo\")"
},
"node_modules": {
"no-search.js": ""
},
"dist": {
"no-search.js": ""
}
}
}
}
}
}
}
}
},
"tmp": {}
}

exports['transformRequires can find and replace symlink requires on win32 1'] = {
"[cwd]": {
"build": {
"linux": {
"Cypress": {
"resources": {
"app": {
"packages": {
"foo": {
"package.json": "{\"main\":\"src/main.js\", \"name\": \"foo\", \"files\": [\"lib\"]}",
"src": {
"main.js": "console.log()"
},
"lib": {
"foo.js": "require(\"../../bar/src/main\")"
}
},
"bar": {
"package.json": "{\"main\":\"src/main.js\", \"name\": \"foo\", \"files\": [\"lib\"]}",
"src": {
"main.js": "console.log()"
},
"lib": {
"foo.js": "require(\"../../foo/lib/somefoo\")"
},
"node_modules": {
"no-search.js": ""
},
"dist": {
"no-search.js": ""
}
}
}
}
}
}
}
}
},
"tmp": {}
}
5 changes: 2 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ jobs:
- attach_workspace:
at: ~/
- run: npm run lint
- run: npm run all lint

unit-tests:
<<: *defaults
Expand Down Expand Up @@ -237,7 +236,7 @@ jobs:
- store_test_results:
path: /tmp/cypress

lint-typescript:
lint-types:
<<: *defaults
parallelism: 1
steps:
Expand Down Expand Up @@ -723,7 +722,7 @@ linux-workflow: &linux-workflow
name: Linux lint
requires:
- build
- lint-typescript:
- lint-types:
requires:
- build
# unit, integration and e2e tests
Expand Down
4 changes: 2 additions & 2 deletions cli/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const spaceDelimitedSpecsMsg = (files) => {
If you are trying to pass multiple spec filenames, separate them by commas instead:
cypress run --spec spec1,spec2,spec3
`)

logger.log()
}

Expand Down Expand Up @@ -73,8 +74,7 @@ const parseOpts = (opts) => {
'project', 'spec', 'reporter', 'reporterOptions', 'path', 'destination',
'port', 'env', 'cypressVersion', 'config', 'record', 'key',
'browser', 'detached', 'headed', 'global', 'dev', 'force', 'exit',
'cachePath', 'cacheList', 'cacheClear', 'parallel', 'group', 'ciBuildId'
)
'cachePath', 'cacheList', 'cacheClear', 'parallel', 'group', 'ciBuildId')

if (opts.exit) {
opts = _.omit(opts, 'exit')
Expand Down
10 changes: 7 additions & 3 deletions cli/lib/tasks/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ const verifyDownloadedFile = (filename, expectedSize, expectedChecksum) => {
debug(text)

throw new Error(text)
})
}
)
}

if (expectedChecksum) {
Expand Down Expand Up @@ -211,6 +212,7 @@ const downloadFromUrl = ({ url, downloadDestination, progress }) => {
// see https://github.com/cypress-io/cypress/pull/4092
expectedSize = response.headers['x-amz-meta-size'] ||
response.headers['content-length']

expectedChecksum = response.headers['x-amz-meta-checksum']

if (expectedChecksum) {
Expand Down Expand Up @@ -274,9 +276,11 @@ const downloadFromUrl = ({ url, downloadDestination, progress }) => {
* @param [string] version Could be "3.3.0" or full URL
* @param [string] downloadDestination Local filename to save as
*/
const start = ({ version, downloadDestination, progress }) => {
const start = (opts) => {
let { version, downloadDestination, progress } = opts

if (!downloadDestination) {
la(is.unemptyString(downloadDestination), 'missing download dir', arguments)
la(is.unemptyString(downloadDestination), 'missing download dir', opts)
}

if (!progress) {
Expand Down
10 changes: 8 additions & 2 deletions cli/lib/tasks/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ const start = (options = {}) => {
debug('environment variable CYPRESS_INSTALL_BINARY = 0, skipping install')
logger.log(
stripIndent`
${chalk.yellow('Note:')} Skipping binary installation: Environment variable CYPRESS_INSTALL_BINARY = 0.`)
${chalk.yellow('Note:')} Skipping binary installation: Environment variable CYPRESS_INSTALL_BINARY = 0.`
)

logger.log()

return Promise.resolve()
Expand All @@ -187,7 +189,9 @@ const start = (options = {}) => {
${chalk.yellow('Note:')} Overriding Cypress cache directory to: ${chalk.cyan(envCache)}

Previous installs of Cypress may not be found.
`)
`
)

logger.log()
}

Expand Down Expand Up @@ -220,6 +224,7 @@ const start = (options = {}) => {
logger.log(stripIndent`
Cypress ${chalk.green(binaryVersion)} is installed in ${chalk.cyan(installDir)}
`)

logger.log()

if (options.force) {
Expand Down Expand Up @@ -257,6 +262,7 @@ const start = (options = {}) => {
These versions may not work properly together.
`)
)

logger.log()
}

Expand Down
3 changes: 2 additions & 1 deletion cli/lib/tasks/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ const writeBinaryVerifiedAsync = (verified, binaryDir) => {
return fs.outputJsonAsync(
getBinaryStatePath(binaryDir),
_.extend(contents, { verified }),
{ spaces: 2 })
{ spaces: 2 }
)
})
}

Expand Down
1 change: 1 addition & 0 deletions cli/lib/tasks/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ const start = (options = {}) => {

This overrides the default Cypress binary path used.
`)

logger.log()

return util.isExecutableAsync(envBinaryPath)
Expand Down
Loading