pagean 4.4.2 → 6.0.1

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.
Files changed (96) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +9 -9
  3. package/docs/upgrade-guide.md +16 -0
  4. package/index.js +7 -4
  5. package/lib/config.js +2 -2
  6. package/lib/default-config.json +41 -39
  7. package/lib/externalFileUtils.js +1 -1
  8. package/lib/linkUtils.js +162 -25
  9. package/lib/logger.js +1 -1
  10. package/lib/report-template.handlebars +224 -209
  11. package/lib/schemaErrors.js +5 -4
  12. package/lib/testUtils.js +1 -1
  13. package/lib/tests.js +14 -14
  14. package/package.json +28 -30
  15. package/schemas/pageanrc.schema.json +199 -191
  16. package/.codeclimate.json +0 -8
  17. package/.depcheckrc.json +0 -3
  18. package/.dockerignore +0 -12
  19. package/.eslintrc.json +0 -19
  20. package/.gitattributes +0 -4
  21. package/.gitlab/gitlab-releaser.json +0 -16
  22. package/.htmlhintrc +0 -25
  23. package/.markdownlint.json +0 -13
  24. package/.pa11yci.json +0 -5
  25. package/.pageanrc.json +0 -55
  26. package/.stylelintrc.json +0 -7
  27. package/CHANGELOG.md +0 -204
  28. package/gitlab.pageanrc.json +0 -16
  29. package/jest.config.json +0 -22
  30. package/static-server.pageanrc.json +0 -50
  31. package/tests/__snapshots__/config.test.js.snap +0 -591
  32. package/tests/__snapshots__/externalFileUtils.test.js.snap +0 -7
  33. package/tests/__snapshots__/index.test.js.snap +0 -30
  34. package/tests/__snapshots__/pagean.test.js.snap +0 -82
  35. package/tests/__snapshots__/pageanrc.test.js.snap +0 -759
  36. package/tests/__snapshots__/reporter.test.js.snap +0 -509
  37. package/tests/config.test.js +0 -264
  38. package/tests/externalFileUtils.test.js +0 -184
  39. package/tests/index.test.js +0 -181
  40. package/tests/linkUtils.test.js +0 -290
  41. package/tests/logger.test.js +0 -324
  42. package/tests/pagean.test.js +0 -85
  43. package/tests/pageanrc.test.js +0 -96
  44. package/tests/reporter.test.js +0 -82
  45. package/tests/schemaErrors.test.js +0 -88
  46. package/tests/test-cases/.htmlhintrc +0 -25
  47. package/tests/test-cases/brokenLinks.html +0 -22
  48. package/tests/test-cases/consoleLog.html +0 -11
  49. package/tests/test-cases/duplicateLinks.html +0 -22
  50. package/tests/test-cases/dynamicContent.html +0 -13
  51. package/tests/test-cases/externalScripts.html +0 -21
  52. package/tests/test-cases/horizontalScrollbar.html +0 -13
  53. package/tests/test-cases/htmlError.html +0 -11
  54. package/tests/test-cases/noExternalScripts.html +0 -12
  55. package/tests/test-cases/notDocumentLinks.html +0 -18
  56. package/tests/test-cases/pagean-results.json +0 -1
  57. package/tests/test-cases/scriptError404.html +0 -9
  58. package/tests/test-cases/slowLoad.html +0 -9
  59. package/tests/test-configs/cli-tests/.pageanrc.json +0 -28
  60. package/tests/test-configs/cli-tests/all-empty.pageanrc.json +0 -10
  61. package/tests/test-configs/cli-tests/all-errors.pageanrc.json +0 -69
  62. package/tests/test-configs/cli-tests/all-fail-cli.pageanrc.json +0 -9
  63. package/tests/test-configs/cli-tests/no-urls.pageanrc.json +0 -7
  64. package/tests/test-configs/cli-tests/pass-fail-cli.pageanrc.json +0 -14
  65. package/tests/test-configs/integration-tests/all-passing-tests.pageanrc.json +0 -63
  66. package/tests/test-configs/integration-tests/broken-links-error.pageanrc.json +0 -22
  67. package/tests/test-configs/integration-tests/console-error-reporter-cli-json.pageanrc.json +0 -20
  68. package/tests/test-configs/integration-tests/console-error-reporter-html.pageanrc.json +0 -19
  69. package/tests/test-configs/integration-tests/console-error.pageanrc.json +0 -16
  70. package/tests/test-configs/integration-tests/console-output.pageanrc.json +0 -16
  71. package/tests/test-configs/integration-tests/external-scripts-error.pageanrc.json +0 -19
  72. package/tests/test-configs/integration-tests/horizontal-scrollbar.pageanrc.json +0 -16
  73. package/tests/test-configs/integration-tests/html-error.pageanrc.json +0 -16
  74. package/tests/test-configs/integration-tests/page-load-time.pageanrc.json +0 -16
  75. package/tests/test-configs/unit-tests/empty-url-values.pageanrc.json +0 -9
  76. package/tests/test-configs/unit-tests/empty-urls.pageanrc.json +0 -3
  77. package/tests/test-configs/unit-tests/empty.pageanrc.json +0 -2
  78. package/tests/test-configs/unit-tests/global-and-test-specific-settings-shorthand.pageanrc.json +0 -30
  79. package/tests/test-configs/unit-tests/global-and-test-specific-settings-test-props.pageanrc.json +0 -42
  80. package/tests/test-configs/unit-tests/global-and-test-specific-settings.pageanrc.json +0 -34
  81. package/tests/test-configs/unit-tests/global-test-settings.pageanrc.json +0 -15
  82. package/tests/test-configs/unit-tests/htmlhintrc-invalid.pageanrc.json +0 -7
  83. package/tests/test-configs/unit-tests/htmlhintrc-valid.pageanrc.json +0 -7
  84. package/tests/test-configs/unit-tests/ignored-links-denormalized.pageanrc.json +0 -18
  85. package/tests/test-configs/unit-tests/invalid.pageanrc.json +0 -0
  86. package/tests/test-configs/unit-tests/no-test-settings.pageanrc.json +0 -6
  87. package/tests/test-configs/unit-tests/project-no-test-settings.pageanrc.json +0 -7
  88. package/tests/test-configs/unit-tests/puppeteer-no-test-settings.pageanrc.json +0 -9
  89. package/tests/test-configs/unit-tests/reporters-empty.pageanrc.json +0 -7
  90. package/tests/test-configs/unit-tests/reporters-invalid-type.pageanrc.json +0 -9
  91. package/tests/test-configs/unit-tests/reporters-not-array.pageanrc.json +0 -6
  92. package/tests/test-configs/unit-tests/reporters-valid.pageanrc.json +0 -9
  93. package/tests/test-configs/unit-tests/test-specific-settings.pageanrc.json +0 -26
  94. package/tests/test-configs/unit-tests/url-types.pageanrc.json +0 -10
  95. package/tests/testUtils.test.js +0 -244
  96. package/tests/tests.test.js +0 -533
@@ -1,214 +1,222 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://gitlab.com/gitlab-ci-utils/pagean/-/raw/master/schemas/pageanrc.schema.json",
4
- "title": "Pagean Configuration File Schema",
5
- "description": "The JSON schema definition for pageanrc configuration files.",
6
- "type": "object",
7
- "properties": {
8
- "htmlhintrc": {
9
- "description": "The path to the htmlhintrc file to use for the rendered HTML test (default ./.htmlhintrc)",
10
- "type": "string"
11
- },
12
- "project": {
13
- "description": "The name of the project being analyzed (for reports)",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://gitlab.com/gitlab-ci-utils/pagean/-/raw/master/schemas/pageanrc.schema.json",
4
+ "title": "Pagean Configuration File Schema",
5
+ "description": "The JSON schema definition for pageanrc configuration files.",
6
+ "type": "object",
7
+ "properties": {
8
+ "htmlhintrc": {
9
+ "description": "The path to the htmlhintrc file to use for the rendered HTML test (default ./.htmlhintrc)",
10
+ "type": "string"
11
+ },
12
+ "project": {
13
+ "description": "The name of the project being analyzed (for reports)",
14
+ "type": "string"
15
+ },
16
+ "puppeteerLaunchOptions": {
17
+ "description": "Options passed to puppeteer when launching the browser, see https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#puppeteerlaunchoptions for the complete list.",
18
+ "type": "object",
19
+ "minProperties": 1
20
+ },
21
+ "reporters": {
22
+ "description": "Reporters to use when returning the results of the Pagean tests.",
23
+ "type": "array",
24
+ "items": {
25
+ "enum": [
26
+ "cli",
27
+ "html",
28
+ "json"
29
+ ]
30
+ },
31
+ "minItems": 1
32
+ },
33
+ "settings": {
34
+ "description": "The global test settings to apply to all tests, unless overridden for a specific URL.",
35
+ "$ref": "#/definitions/allTestSettings"
36
+ },
37
+ "urls": {
38
+ "description": "The collection of URLs to test, with any URL-specific test settings.",
39
+ "type": "array",
40
+ "items": {
41
+ "oneOf": [
42
+ {
43
+ "description": "The URL to be tested (without any URL-specific test settings).",
14
44
  "type": "string"
15
- },
16
- "puppeteerLaunchOptions": {
17
- "description": "Options passed to puppeteer when launching the browser, see https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#puppeteerlaunchoptions for the complete list.",
45
+ },
46
+ {
47
+ "description": "An object specifying the URL and any URL-specific test settings.",
18
48
  "type": "object",
19
- "minProperties": 1
20
- },
21
- "reporters": {
22
- "description": "Reporters to use when returning the results of the Pagean tests.",
23
- "type": "array",
24
- "items": {
25
- "enum": [
26
- "cli",
27
- "html",
28
- "json"
29
- ]
49
+ "properties": {
50
+ "url": {
51
+ "description": "The URL to be tested.",
52
+ "type": "string"
53
+ },
54
+ "settings": {
55
+ "description": "URL-specific test settings.",
56
+ "$ref": "#/definitions/allTestSettings"
57
+ }
30
58
  },
31
- "minItems": 1
32
- },
33
- "settings": {
34
- "description": "The global test settings to apply to all tests, unless overridden for a specific URL.",
35
- "$ref": "#/definitions/allTestSettings"
36
- },
37
- "urls": {
38
- "description": "The collection of URLs to test, with any URL-specific test settings.",
39
- "type": "array",
40
- "items": {
41
- "oneOf": [
42
- {
43
- "description": "The URL to be tested (without any URL-specific test settings).",
44
- "type": "string"
45
- },
46
- {
47
- "description": "An object specifying the URL and any URL-specific test settings.",
48
- "type": "object",
49
- "properties": {
50
- "url": {
51
- "description": "The URL to be tested.",
52
- "type": "string"
53
- },
54
- "settings": {
55
- "description": "URL-specific test settings.",
56
- "$ref": "#/definitions/allTestSettings"
57
- }
58
- },
59
- "additionalProperties": {
60
- "not": true,
61
- "errorMessage": "should NOT contain additional properties: ${0#}"
62
- },
63
- "required": [
64
- "url"
65
- ],
66
- "errorMessage": {
67
- "required": "should have required property url"
68
- }
69
- }
70
- ],
71
- "errorMessage": "should be either URL string or object with the appropriate properties"
59
+ "additionalProperties": {
60
+ "not": true,
61
+ "errorMessage": "must NOT contain additional properties: ${0#}"
72
62
  },
73
- "minItems": 1
63
+ "required": [
64
+ "url"
65
+ ],
66
+ "errorMessage": {
67
+ "required": "must have required property 'url'"
68
+ }
69
+ }
70
+ ],
71
+ "errorMessage": "must be either URL string or object with the appropriate properties"
72
+ },
73
+ "minItems": 1
74
+ }
75
+ },
76
+ "additionalProperties": {
77
+ "not": true,
78
+ "errorMessage": "must NOT contain additional properties: ${0#}"
79
+ },
80
+ "required": [
81
+ "urls"
82
+ ],
83
+ "definitions": {
84
+ "detailedSetting": {
85
+ "description": "The complete set of test-specific settings for most tests.",
86
+ "type": "object",
87
+ "properties": {
88
+ "enabled": {
89
+ "description": "Value indicating whether the test is enabled.",
90
+ "type": "boolean"
91
+ },
92
+ "failWarn": {
93
+ "description": "Value indicating whether the test should report failure as a warning.",
94
+ "type": "boolean"
74
95
  }
75
- },
76
- "additionalProperties": {
96
+ },
97
+ "additionalProperties": {
77
98
  "not": true,
78
- "errorMessage": "should NOT contain additional properties: ${0#}"
99
+ "errorMessage": "must NOT contain additional properties: ${0#}"
100
+ },
101
+ "minProperties": 1
79
102
  },
80
- "required": [
81
- "urls"
82
- ],
83
- "definitions": {
84
- "detailedSetting": {
85
- "description": "The complete set of test-specific settings for most tests.",
86
- "type": "object",
87
- "properties": {
103
+ "simpleOrDetailedSetting": {
104
+ "oneOf": [
105
+ {
106
+ "description": "Value indicating whether the test is enabled (with other default settings).",
107
+ "type": "boolean"
108
+ },
109
+ {
110
+ "description": "The complete set of test-specific settings for a test.",
111
+ "$ref": "#/definitions/detailedSetting"
112
+ }
113
+ ],
114
+ "errorMessage": "must be either boolean or object with the appropriate properties"
115
+ },
116
+ "allTestSettings": {
117
+ "description": "The complete set of test-specific settings for all test.",
118
+ "type": "object",
119
+ "properties": {
120
+ "horizontalScrollbarTest": {
121
+ "$ref": "#/definitions/simpleOrDetailedSetting"
122
+ },
123
+ "consoleOutputTest": {
124
+ "$ref": "#/definitions/simpleOrDetailedSetting"
125
+ },
126
+ "consoleErrorTest": {
127
+ "$ref": "#/definitions/simpleOrDetailedSetting"
128
+ },
129
+ "renderedHtmlTest": {
130
+ "$ref": "#/definitions/simpleOrDetailedSetting"
131
+ },
132
+ "pageLoadTimeTest": {
133
+ "oneOf": [
134
+ {
135
+ "description": "Value indicating whether the test is enabled (with other default settings).",
136
+ "type": "boolean"
137
+ },
138
+ {
139
+ "description": "The complete set of test-specific settings for the pageLoadTimeTest test.",
140
+ "type": "object",
141
+ "properties": {
88
142
  "enabled": {
89
- "description": "Value indicating whether the test is enabled.",
90
- "type": "boolean"
143
+ "description": "Value indicating whether the test is enabled.",
144
+ "type": "boolean"
91
145
  },
92
146
  "failWarn": {
93
- "description": "Value indicating whether the test should report failure as a warning.",
94
- "type": "boolean"
147
+ "description": "Value indicating whether the test should report failure as a warning.",
148
+ "type": "boolean"
149
+ },
150
+ "pageLoadTimeThreshold": {
151
+ "description": "Maximum allowed time for page load before reporting an error.",
152
+ "type": "integer",
153
+ "minimum": 1
95
154
  }
96
- },
97
- "additionalProperties": {
155
+ },
156
+ "additionalProperties": {
98
157
  "not": true,
99
- "errorMessage": "should NOT contain additional properties: ${0#}"
100
- },
101
- "minProperties": 1
158
+ "errorMessage": "must NOT contain additional properties: ${0#}"
159
+ },
160
+ "minProperties": 1
161
+ }
162
+ ],
163
+ "errorMessage": "must be either boolean or object with the appropriate properties"
102
164
  },
103
- "simpleOrDetailedSetting": {
104
- "oneOf": [
105
- {
106
- "description": "Value indicating whether the test is enabled (with other default settings).",
107
- "type": "boolean"
108
- },
109
- {
110
- "description": "The complete set of test-specific settings for a test.",
111
- "$ref": "#/definitions/detailedSetting"
112
- }
113
- ],
114
- "errorMessage": "should be either boolean or object with the appropriate properties"
165
+ "externalScriptTest": {
166
+ "$ref": "#/definitions/simpleOrDetailedSetting"
115
167
  },
116
- "allTestSettings": {
117
- "description": "The complete set of test-specific settings for all test.",
118
- "type": "object",
119
- "properties": {
120
- "horizontalScrollbarTest": {
121
- "$ref": "#/definitions/simpleOrDetailedSetting"
122
- },
123
- "consoleOutputTest": {
124
- "$ref": "#/definitions/simpleOrDetailedSetting"
125
- },
126
- "consoleErrorTest": {
127
- "$ref": "#/definitions/simpleOrDetailedSetting"
168
+ "brokenLinkTest": {
169
+ "oneOf": [
170
+ {
171
+ "description": "Value indicating whether the test is enabled (with other default settings).",
172
+ "type": "boolean"
173
+ },
174
+ {
175
+ "description": "The complete set of test-specific settings for the brokenLinkTest test.",
176
+ "type": "object",
177
+ "properties": {
178
+ "enabled": {
179
+ "description": "Value indicating whether the test is enabled.",
180
+ "type": "boolean"
128
181
  },
129
- "renderedHtmlTest": {
130
- "$ref": "#/definitions/simpleOrDetailedSetting"
182
+ "failWarn": {
183
+ "description": "Value indicating whether the test should report failure as a warning.",
184
+ "type": "boolean"
131
185
  },
132
- "pageLoadTimeTest": {
133
- "oneOf": [
134
- {
135
- "description": "Value indicating whether the test is enabled (with other default settings).",
136
- "type": "boolean"
137
- },
138
- {
139
- "description": "The complete set of test-specific settings for the pageLoadTimeTest test.",
140
- "type": "object",
141
- "properties": {
142
- "enabled": {
143
- "description": "Value indicating whether the test is enabled.",
144
- "type": "boolean"
145
- },
146
- "failWarn": {
147
- "description": "Value indicating whether the test should report failure as a warning.",
148
- "type": "boolean"
149
- },
150
- "pageLoadTimeThreshold": {
151
- "description": "Maximum allowed time for page load before reporting an error.",
152
- "type": "integer",
153
- "minimum": 1
154
- }
155
- },
156
- "additionalProperties": {
157
- "not": true,
158
- "errorMessage": "should NOT contain additional properties: ${0#}"
159
- },
160
- "minProperties": 1
161
- }
162
- ],
163
- "errorMessage": "should be either boolean or object with the appropriate properties"
186
+ "ignoredLinks": {
187
+ "description": "Array of links that will be ignored (i.e. not checked).",
188
+ "type": "array",
189
+ "items": {
190
+ "type": "string"
191
+ },
192
+ "uniqueItems": true,
193
+ "minItems": 0,
194
+ "maxItems": 100
164
195
  },
165
- "externalScriptTest": {
166
- "$ref": "#/definitions/simpleOrDetailedSetting"
196
+ "checkWithBrowser": {
197
+ "description": "Value indicating that links should be checked by loading in browser",
198
+ "type": "boolean"
167
199
  },
168
- "brokenLinkTest": {
169
- "oneOf": [
170
- {
171
- "description": "Value indicating whether the test is enabled (with other default settings).",
172
- "type": "boolean"
173
- },
174
- {
175
- "description": "The complete set of test-specific settings for the brokenLinkTest test.",
176
- "type": "object",
177
- "properties": {
178
- "enabled": {
179
- "description": "Value indicating whether the test is enabled.",
180
- "type": "boolean"
181
- },
182
- "failWarn": {
183
- "description": "Value indicating whether the test should report failure as a warning.",
184
- "type": "boolean"
185
- },
186
- "ignoredLinks": {
187
- "description": "Array of links that will be ignored (i.e. not checked).",
188
- "type": "array",
189
- "items": {
190
- "type": "string"
191
- },
192
- "uniqueItems": true,
193
- "minItems": 0,
194
- "maxItems": 100
195
- }
196
- },
197
- "additionalProperties": {
198
- "not": true,
199
- "errorMessage": "should NOT contain additional properties: ${0#}"
200
- },
201
- "minProperties": 1
202
- }
203
- ],
204
- "errorMessage": "should be either boolean or object with the appropriate properties"
200
+ "ignoreDuplicates": {
201
+ "description": "Value indicating that links should only be checked once",
202
+ "type": "boolean"
205
203
  }
206
- },
207
- "additionalProperties": {
204
+ },
205
+ "additionalProperties": {
208
206
  "not": true,
209
- "errorMessage": "should NOT contain additional properties: ${0#}"
210
- },
211
- "minProperties": 1
207
+ "errorMessage": "must NOT contain additional properties: ${0#}"
208
+ },
209
+ "minProperties": 1
210
+ }
211
+ ],
212
+ "errorMessage": "must be either boolean or object with the appropriate properties"
212
213
  }
214
+ },
215
+ "additionalProperties": {
216
+ "not": true,
217
+ "errorMessage": "must NOT contain additional properties: ${0#}"
218
+ },
219
+ "minProperties": 1
213
220
  }
214
- }
221
+ }
222
+ }
package/.codeclimate.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "version": "2",
3
- "plugins": {
4
- "eslint": {
5
- "enabled": false
6
- }
7
- }
8
- }
package/.depcheckrc.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "ignores": ["@aarongoldenthal/stylelint-config-standard"]
3
- }
package/.dockerignore DELETED
@@ -1,12 +0,0 @@
1
- .git/
2
- .vscode/
3
- Archive/
4
- coverage/
5
- node_modules/
6
- .dockerignore
7
- .gitignore
8
- .gitlab-ci.yml
9
- .npmignore
10
- *Dockerfile
11
- junit.xml
12
- pagean-results.*
package/.eslintrc.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true
4
- },
5
- "extends": [
6
- "@aarongoldenthal/eslint-config-standard",
7
- "@aarongoldenthal/eslint-config-standard/jest-config",
8
- "@aarongoldenthal/eslint-config-standard/node-config",
9
- "@aarongoldenthal/eslint-config-standard/sonarjs-config"
10
- ],
11
- "ignorePatterns": [
12
- ".vscode/",
13
- "Archive/",
14
- "node_modules/",
15
- "coverage/",
16
- "pagean-external-scripts/"
17
- ],
18
- "root": true
19
- }
package/.gitattributes DELETED
@@ -1,4 +0,0 @@
1
- * text=auto
2
-
3
- *.js text eol=lf
4
- *.handlebars eol=lf
@@ -1,16 +0,0 @@
1
- {
2
- "defaults": {
3
- "name": "$$CHANGELOG",
4
- "description": "$$CHANGELOG",
5
- "assets": {
6
- "links": [
7
- {
8
- "name": "npm",
9
- "url": "https://www.npmjs.com/package/pagean",
10
- "type": "package"
11
- }
12
- ]
13
- },
14
- "milestones": [ "${CI_COMMIT_TAG}" ]
15
- }
16
- }
package/.htmlhintrc DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "tagname-lowercase": true,
3
- "attr-lowercase": true,
4
- "attr-value-double-quotes": true,
5
- "attr-value-not-empty": false,
6
- "attr-no-duplication": true,
7
- "doctype-first": true,
8
- "tag-pair": true,
9
- "empty-tag-not-self-closed": true,
10
- "spec-char-escape": true,
11
- "id-unique": true,
12
- "src-not-empty": true,
13
- "title-require": true,
14
- "alt-require": true,
15
- "doctype-html5": true,
16
- "id-class-value": "false",
17
- "style-disabled": false,
18
- "inline-style-disabled": false,
19
- "inline-script-disabled": false,
20
- "space-tab-mixed-disabled": "space",
21
- "id-class-ad-disabled": false,
22
- "href-abs-or-rel": false,
23
- "attr-unsafe-chars": true,
24
- "head-script-disabled": true
25
- }
@@ -1,13 +0,0 @@
1
- {
2
- "default": true,
3
- "header-style": { "style": "atx" },
4
- "ul-style": { "style": "dash" },
5
- "ul-indent": { "indent": 2 },
6
- "line-length": false,
7
- "no-duplicate-header": { "siblings_only": true } ,
8
- "ol-prefix": { "style": "ordered" },
9
- "no-inline-html": false,
10
- "no-bare-urls": false,
11
- "hr-style": { "style": "---" },
12
- "fenced-code-language": false
13
- }
package/.pa11yci.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "urls": [
3
- "./pagean-results.html"
4
- ]
5
- }
package/.pageanrc.json DELETED
@@ -1,55 +0,0 @@
1
- {
2
- "project": "Pagean",
3
- "puppeteerLaunchOptions": {
4
- "args": [
5
- "--no-sandbox"
6
- ]
7
- },
8
- "settings": {
9
- "pageLoadTimeTest": {
10
- "pageLoadTimeThreshold": 3
11
- },
12
- "brokenLinkTest": {
13
- "failWarn": false
14
- }
15
- },
16
- "urls": [
17
- "tests/test-cases/consoleLog.html",
18
- "tests/test-cases/dynamicContent.html",
19
- "tests/test-cases/horizontalScrollbar.html",
20
- "tests/test-cases/htmlError.html",
21
- {
22
- "url": "tests/test-cases/scriptError404.html",
23
- "settings": {
24
- "consoleOutputTest": false,
25
- "externalScriptTest": false
26
- }
27
- },
28
- {
29
- "url": "tests/test-cases/slowLoad.html",
30
- "settings": {
31
- "pageLoadTimeTest": {
32
- "pageLoadTimeThreshold": 2
33
- },
34
- "externalScriptTest": false
35
- }
36
- },
37
- {
38
- "url": "tests/test-cases/externalScripts.html",
39
- "settings": {
40
- "consoleOutputTest": false,
41
- "consoleErrorTest": false
42
- }
43
- },
44
- {
45
- "url": "tests/test-cases/brokenLinks.html",
46
- "settings": {
47
- "brokenLinkTest": {
48
- "ignoredLinks": [
49
- "https://this.url.is.ignored"
50
- ]
51
- }
52
- }
53
- }
54
- ]
55
- }
package/.stylelintrc.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "stylelint-config-standard",
3
- "rules": {
4
- "color-hex-length": "long",
5
- "indentation": 4
6
- }
7
- }