pagean 14.7.0 → 14.8.0
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/lib/test-utilities.js +6 -1
- package/lib/utilities.js +3 -1
- package/package.json +6 -6
package/lib/test-utilities.js
CHANGED
|
@@ -19,13 +19,18 @@ const getTestSettings = (testSettingProperty, urlSettings) => {
|
|
|
19
19
|
return urlSettings[testSettingProperty];
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @typedef {function(object): object} TestFunction A test function that accepts a
|
|
24
|
+
* testContext and returns testResults.
|
|
25
|
+
*/
|
|
26
|
+
|
|
22
27
|
/**
|
|
23
28
|
* Wrapper function for executing all Pagean tests that manages getting
|
|
24
29
|
* test-specific settings from configuration, passing the test context,
|
|
25
30
|
* and logging results.
|
|
26
31
|
*
|
|
27
32
|
* @param {string} name The name of the test being run.
|
|
28
|
-
* @param {
|
|
33
|
+
* @param {TestFunction} testFunction The test function to be executed.
|
|
29
34
|
* @param {object} testContext The test execution context.
|
|
30
35
|
* @param {string} testSettingProperty The name of the config property
|
|
31
36
|
* with settings for the current test.
|
package/lib/utilities.js
CHANGED
|
@@ -12,7 +12,9 @@ import { readFile } from 'node:fs/promises';
|
|
|
12
12
|
*
|
|
13
13
|
* @type {string}
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
/* eslint-disable-next-line no-underscore-dangle, node/no-unsupported-features/node-builtins --
|
|
16
|
+
match CJS name; per https://github.com/nodejs/node/commit/e21b37d9df there were no code changes,
|
|
17
|
+
just documenting the promotion in Node 22.16.0. */
|
|
16
18
|
const __dirname = import.meta.dirname;
|
|
17
19
|
|
|
18
20
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pagean",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.8.0",
|
|
4
4
|
"description": "Pagean is a web page analysis tool designed to automate tests requiring web pages to be loaded in a browser window (e.g. horizontal scrollbar, console errors)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pagean": "bin/pagean.js",
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
},
|
|
57
57
|
"homepage": "https://gitlab.com/gitlab-ci-utils/pagean",
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aarongoldenthal/eslint-config-standard": "^
|
|
59
|
+
"@aarongoldenthal/eslint-config-standard": "^40.0.0",
|
|
60
60
|
"@aarongoldenthal/stylelint-config-standard": "^21.0.0",
|
|
61
61
|
"@vitest/coverage-v8": "^3.2.4",
|
|
62
62
|
"bin-tester": "^7.0.1",
|
|
63
63
|
"c8": "^10.1.3",
|
|
64
|
-
"eslint": "^9.
|
|
64
|
+
"eslint": "^9.36.0",
|
|
65
65
|
"globals": "^16.4.0",
|
|
66
66
|
"markdownlint-cli2": "^0.18.1",
|
|
67
67
|
"nyc": "^17.1.0",
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"ajv": "^8.17.1",
|
|
74
74
|
"ajv-errors": "^3.0.0",
|
|
75
|
-
"axios": "^1.12.
|
|
75
|
+
"axios": "^1.12.2",
|
|
76
76
|
"ci-logger": "^8.0.1",
|
|
77
77
|
"commander": "^14.0.1",
|
|
78
78
|
"cssesc": "^3.0.0",
|
|
79
79
|
"handlebars": "^4.7.8",
|
|
80
|
-
"htmlhint": "^1.7.
|
|
80
|
+
"htmlhint": "^1.7.1",
|
|
81
81
|
"kleur": "^4.1.5",
|
|
82
82
|
"normalize-url": "^8.1.0",
|
|
83
83
|
"protocolify": "^4.0.0",
|
|
84
|
-
"puppeteer": "^24.
|
|
84
|
+
"puppeteer": "^24.22.3",
|
|
85
85
|
"xml2js": "^0.6.2"
|
|
86
86
|
}
|
|
87
87
|
}
|