@davidsneighbour/cypress-config 4.0.10 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +26 -45
- package/{base-hugo.json → cypress-base-hugo.json} +0 -0
- package/{base.json → cypress-base.json} +0 -0
- package/{index.js → cypress.js} +0 -0
- package/package.json +13 -15
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Patrick Kollitsch / David's Neighbour
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
### Installation
|
|
4
|
-
|
|
5
|
-
Use npm to install this package as development dependency:
|
|
6
|
-
|
|
7
|
-
```shell
|
|
8
|
-
npm install --save-dev @davidsneighbour/cypress-config
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### Configuration
|
|
1
|
+
# Cypress
|
|
12
2
|
|
|
13
3
|
Create `tests/cypress/plugins.index.js` with the following content:
|
|
14
4
|
|
|
@@ -16,14 +6,14 @@ Create `tests/cypress/plugins.index.js` with the following content:
|
|
|
16
6
|
// noinspection JSUnresolvedVariable
|
|
17
7
|
module.exports = (on, config) =>
|
|
18
8
|
// eslint-disable-next-line global-require
|
|
19
|
-
require("@davidsneighbour/cypress
|
|
9
|
+
require("@davidsneighbour/config/cypress")(config.configFile);
|
|
20
10
|
```
|
|
21
11
|
|
|
22
12
|
Then add in `cypress.json` at least the following two lines:
|
|
23
13
|
|
|
24
14
|
```json
|
|
25
15
|
{
|
|
26
|
-
"extends": "@davidsneighbour/cypress-
|
|
16
|
+
"extends": "@davidsneighbour/confing/cypress-base.json",
|
|
27
17
|
"pluginsFile": "tests/cypress/plugins/index.js"
|
|
28
18
|
}
|
|
29
19
|
```
|
|
@@ -32,35 +22,26 @@ This configuration setup uses the approach of [Gleb Bahmutov's blog post](https:
|
|
|
32
22
|
|
|
33
23
|
## Default settings of this configuration
|
|
34
24
|
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
| [prettier-config](https://github.com/davidsneighbour/configurations/tree/main/packages/prettier-config) | [Prettier](https://prettier.io/) configuration |
|
|
59
|
-
| [remark-config](https://github.com/davidsneighbour/configurations/tree/main/packages/remark-config) | [ReMark](https://github.com/remarkjs/remark-lint) configuration |
|
|
60
|
-
| [standard-version-config](https://github.com/davidsneighbour/configurations/tree/main/packages/standard-version-config) | [Standard Version](https://github.com/conventional-changelog/standard-version) configuration |
|
|
61
|
-
| [stylelint-config](https://github.com/davidsneighbour/configurations/tree/main/packages/stylelint-config) | [StyleLint](https://github.com/stylelint/stylelint) configuration |
|
|
62
|
-
| [textlint-config](https://github.com/davidsneighbour/configurations/tree/main/packages/textlint-config) | [TextLint](https://github.com/textlint/textlint) configuration |
|
|
63
|
-
| [webpack-config](https://github.com/davidsneighbour/configurations/tree/main/packages/webpack-config) | [Webpack](https://webpack.js.org/) configuration |
|
|
64
|
-
| [tools](https://github.com/davidsneighbour/configurations/tree/main/packages/tools) | Tools |
|
|
65
|
-
|
|
66
|
-
<!-- CONFIGURATIONS END -->
|
|
25
|
+
- All cypress files reside within the `tests` directory (no need for additional directories in the root directory).
|
|
26
|
+
- The base url is set to <http://localhost:1313> - default for all Hugo dev server instances.
|
|
27
|
+
- IDEs like IntelliJ import the schema to offer typeahead code hints.
|
|
28
|
+
- `watchForFileChanges` is enabled.
|
|
29
|
+
|
|
30
|
+
# All configurations
|
|
31
|
+
|
|
32
|
+
- [Babel](/packages/babel-config)
|
|
33
|
+
- [Bootstrap](/packages/bootstrap-config)
|
|
34
|
+
- [Browserslist](/packages/browserslist-config)
|
|
35
|
+
- [Commitlint](/packages/commitlint-config)
|
|
36
|
+
- [CssNano](/packages/cssnano-config)
|
|
37
|
+
- [Cypress](/packages/cypress-config)
|
|
38
|
+
- [ESLint](/packages/eslint-config)
|
|
39
|
+
- [Markdownlint](/packages/markdownlint-config)
|
|
40
|
+
- [PostCSS](/packages/postcss-config)
|
|
41
|
+
- [Prettier](/packages/prettier-config)
|
|
42
|
+
- [Remark Lint](/packages/remark-config)
|
|
43
|
+
- [Standard Version](/packages/standard-version-config)
|
|
44
|
+
- [Stylelint](/packages/stylelint-config)
|
|
45
|
+
- [Textlint](/packages/textlint-config)
|
|
46
|
+
- [Tools](/packages/tools)
|
|
47
|
+
- [Webpack](/packages/webpack-config)
|
|
File without changes
|
|
File without changes
|
package/{index.js → cypress.js}
RENAMED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@davidsneighbour/cypress-config",
|
|
3
|
-
"
|
|
3
|
+
"description": "Cypress configuration for use in @davidsneighbour projects.",
|
|
4
|
+
"version": "5.0.2",
|
|
4
5
|
"license": "MIT",
|
|
5
|
-
"
|
|
6
|
+
"repository": "davidsneighbour/configurations",
|
|
6
7
|
"author": {
|
|
7
8
|
"name": "Patrick Kollitsch",
|
|
8
9
|
"email": "patrick@davids-neighbour.com",
|
|
9
10
|
"web": "https://davids-neighbour.com"
|
|
10
11
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"url": "https://github.com/davidsneighbour/configurations/issues"
|
|
14
|
-
},
|
|
12
|
+
"bugs": "https://github.com/davidsneighbour/configurations/issues",
|
|
13
|
+
"homepage": "https://github.com/davidsneighbour/configurations/blob/main/docs/cypress.md",
|
|
15
14
|
"dependencies": {
|
|
16
|
-
"
|
|
17
|
-
"cypress": "
|
|
18
|
-
"cypress-
|
|
19
|
-
"
|
|
20
|
-
"deepmerge": "^4.2.2",
|
|
21
|
-
"eslint-plugin-cypress": "^2.12.1"
|
|
15
|
+
"cypress": "12.4.1",
|
|
16
|
+
"cypress-axe": "1.3.0",
|
|
17
|
+
"cypress-html-validate": "5.1.2",
|
|
18
|
+
"eslint-plugin-cypress": "2.12.1"
|
|
22
19
|
},
|
|
23
|
-
"main": "index.js",
|
|
24
20
|
"scripts": {
|
|
25
|
-
"
|
|
26
|
-
}
|
|
21
|
+
"fixpack": "fixpack"
|
|
22
|
+
},
|
|
23
|
+
"main": "index.js",
|
|
24
|
+
"gitHead": "8af7f637920a8701d198aa71ecd164fe02b1f6e7"
|
|
27
25
|
}
|