Skip to content

Commit 653431e

Browse files
Merge branch 'develop' into issue-2115-suite-failure
2 parents 1e7bb06 + 8d72901 commit 653431e

File tree

969 files changed

+55960
-38698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

969 files changed

+55960
-38698
lines changed

.eslintignore

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
**/dist
88
**/dist-test
99
**/node_modules
10-
**/support/fixtures
10+
**/support/fixtures/*
11+
!**/support/fixtures/projects
12+
**/support/fixtures/projects/**/_fixtures/*
13+
**/support/fixtures/projects/**/*.jsx
14+
**/support/fixtures/projects/**/jquery.js
15+
**/support/fixtures/projects/**/fail.js
1116
**/test/fixtures
1217
**/vendor
1318

@@ -26,3 +31,5 @@ packages/launcher/lib/**/*.js
2631
**/package-lock.json
2732
**/tsconfig.json
2833
**/.vscode
34+
**/.history
35+
**/.cy

.eslintrc.decaffeinate.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const _ = require('lodash')
2+
const baseConfig = require('./.eslintrc.json')
3+
4+
module.exports = _.defaultsDeep({}, baseConfig, {
5+
rules: {
6+
// auto-fix removing some common unnecessary returns
7+
'@cypress/dev/no-return-before': 'error',
8+
// make sure we use arrow callback
9+
'prefer-arrow-callback': 'error',
10+
// since our jscodemod scripts will format one-line-body functions as single line
11+
'arrow-body-style': ['error', 'always'],
12+
},
13+
})

.eslintrc .eslintrc.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
"extends": [
66
"plugin:@cypress/dev/general"
77
],
8-
"rules": {}
8+
"rules": {
9+
"prefer-spread": "off"
10+
}
911
}
File renamed without changes.
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
this comment will be posted automatically by Cypress bot whenever someone opens a pull request,
3+
and it helps the reviewer from Cypress team to ensure the change is solid.
4+
-->
5+
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
6+
7+
- Please write \`[WIP]\` in the title of your Pull Request if your PR is not ready for review - someone will review your PR as soon as the \`[WIP]\` is removed.
8+
- Please familiarize yourself with the PR Review Checklist and feel free to make updates on your PR based on these guidelines.
9+
10+
## PR Review Checklist
11+
12+
If any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'.
13+
14+
### User Experience
15+
16+
- The feature/bugfix is self-documenting from within the product.
17+
- The change provides the end user with a way to fix their problem (no dead ends).
18+
19+
### Functionality
20+
21+
- The code works and performs its intended function with the correct logic.
22+
- Performance has been factored in (for example, the code cleans up after itself to not cause memory leaks).
23+
- The code guards against edge cases and invalid input and has tests to cover it.
24+
25+
### Maintainability
26+
27+
- The code is readable (too many nested 'if's are a bad sign).
28+
- Names used for variables, methods, etc, clearly describe their function.
29+
- The code is easy to understood and there are relevant comments explaining.
30+
- New algorithms are documented in the code with link(s) to external docs (flowcharts, w3c, chrome, firefox).
31+
- There are comments containing link(s) to the addressed issue (in tests and code).
32+
33+
### Quality
34+
35+
- The change does not reimplement code.
36+
- There's not a module from the ecosystem that should be used instead.
37+
- There is no redundant or duplicate code.
38+
- There are no irrelevant comments left in the code.
39+
- Tests are testing the code’s intended functionality in the best way possible.
40+
41+
### Internal
42+
43+
- The original issue has been tagged with a release in ZenHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!--
2+
this comment will be posted automatically by Cypress bot whenever a dependency update pull request is opened,
3+
and it helps the reviewer from Cypress team to ensure the update won't have unexpected consequences.
4+
-->
5+
Below are some guidelines Cypress uses when reviewing dependency updates.
6+
7+
## Dependency Update Instructions
8+
9+
- Read through the entire changelog of the dependency's changes. If a changelog is not available, check every commit made to the dependency. **NOTE** - do not rely on semver to indicate breaking changes - every product does not follow this standard.
10+
- Add a PR review comment noting any relevant changes in the dependency.
11+
- If any of the following requirements cannot be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'.
12+
13+
## Dependency Updates Checklist
14+
15+
- Code using the dependency has been updated to accommodate any breaking changes
16+
- The dependency still supports the version of Node that the package requires.
17+
- The PR been tagged with a release in ZenHub.
18+
- Appropriate labels have been added to the PR (for example: label \`type: breaking change\` if it is a breaking change)

.github/PULL_REQUEST_TEMPLATE.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!--
2+
Thanks for contributing!
3+
Read our contribution guidelines here:
4+
https://github.com/cypress-io/cypress/blob/develop/.github/CONTRIBUTING.md
5+
-->
6+
7+
<!-- Example: "Closes #1234" -->
8+
9+
- Closes <!-- issue number here -->
10+
11+
### User facing changelog
12+
13+
<!--
14+
Explain the change(s) for every user to read in our changelog.
15+
-->
16+
17+
### Additional details
18+
19+
<!--
20+
Examples:
21+
- Why was this change necessary?
22+
- What is affected by this change?
23+
- Any implementation details to explain?
24+
-->
25+
26+
### How has the user experience changed?
27+
28+
<!--
29+
Provide before and after examples of the change.
30+
Screenshots or GIFs are preferred.
31+
-->
32+
33+
### PR Tasks
34+
35+
<!--
36+
These tasks must be completed before a PR is merged.
37+
Delete tasks if they are not applicable.
38+
-->
39+
40+
- [ ] Have tests been added/updated?
41+
- [ ] Has the original issue been tagged with a release in ZenHub? <!-- (internal team only)-->
42+
- [ ] Has a PR for user-facing changes been opened in [`cypress-documentation`](https://github.com/cypress-io/cypress-documentation)? <!-- Link to PR here -->
43+
- [ ] Have API changes been updated in the [`type definitions`](cli/types/index.d.ts)?
44+
- [ ] Have new configuration options been added to the [`cypress.schema.json`](cli/schema/cypress.schema.json)?

.gitignore

+5-10
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,13 @@ Cached Theme Material Design.pak
2222
packages/https-proxy/ca/
2323

2424
# from desktop-gui
25+
packages/desktop-gui/cypress/videos
2526
packages/desktop-gui/src/jsconfig.json
2627

27-
# from driver
28-
packages/driver/test/cypress/videos
29-
3028
# from example
3129
packages/example/app
3230
packages/example/build
33-
packages/example/cypress/screenshots
34-
packages/example/cypress/videos
35-
packages/example/cypress/fixtures/profile.json
36-
packages/example/cypress/fixtures/users.json
37-
38-
# from driver
39-
packages/driver/test/cypress/videos
31+
packages/example/cypress
4032

4133
# from server
4234
packages/server/.cy
@@ -64,3 +56,6 @@ scripts/support
6456
package-lock.json
6557
yarn.lock
6658
binary-url.json
59+
60+
# Allows us to dynamically create eslint rules that override the default for Decaffeinate scripts
61+
.eslintrc.js

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.9.3
1+
12.0.0

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
loglevel=warn
22
progress=false
33
package-lock=false
4+
save-exact=true

.vscode/settings.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2+
"eslint.alwaysShowStatus": true,
3+
"eslint.autoFixOnSave": true,
24
"eslint.validate": [
3-
{
5+
{
46
"language": "javascript",
57
"autoFix": true
68
},
@@ -25,4 +27,15 @@
2527
"autoFix": false
2628
},
2729
],
30+
"eslint.enable": true,
31+
// this project does not use Prettier
32+
// thus set all settings to disable accidentally running Prettier
33+
"prettier.requireConfig": true,
34+
"prettier.disableLanguages": [
35+
"javascript",
36+
"javascriptreact",
37+
"typescript",
38+
"typescriptreact",
39+
"json"
40+
]
2841
}

.vscode/tasks.json

+6-10
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,20 @@
66
{
77
"label": "decaffeinate-bulk file",
88
"type": "shell",
9-
"command": "npm run decaffeinate-bulk -- --file ${file} convert",
9+
"command": "npm run decaffeinate-bulk -- convert --file ${file}",
1010
"problemMatcher": []
1111
},
1212
{
13-
"label": "decaffeinate-bulk dir",
13+
"label": "decaffeinate-bulk multiple files",
1414
"type": "shell",
15-
"command": "npm run decaffeinate-bulk -- --dir ${fileDirname} convert",
15+
"command": "npm run decaffeinate-bulk -- convert --file ${file} ${file}",
1616
"problemMatcher": []
1717
},
1818
{
19-
"label": "decaffeinate",
20-
"type": "shell",
21-
"command": "npm run decaffeinate -- ${file}"
22-
},
23-
{
24-
"label": "jscodeshift",
19+
"label": "decaffeinate-bulk dir",
2520
"type": "shell",
26-
"command": "npm run jscodeshift -- ${file}"
21+
"command": "npm run decaffeinate-bulk -- --dir ${fileDirname} convert",
22+
"problemMatcher": []
2723
}
2824
]
2925
}

.vscode/terminals.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"onlySingle": true,
3030
"execute": false,
3131
"cwd": "[cwd]/packages/server",
32-
"command": "npm run test-e2e -- --spec name"
32+
"command": "npm run test-e2e -- --spec [fileBasename]"
3333
},
3434
{
3535
"name": "packages/runner watch",

0 commit comments

Comments
 (0)