@public-ui/visual-tests 3.0.2-6ae0104cda0b7b19a5b0d6bbc5f990b9fe544fa0.0 → 3.0.2-ab502d4896d9763f93bb8cce1b07a1b2f8d04439.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/README.md +0 -4
- package/package.json +2 -2
- package/src/index.js +1 -8
package/README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# KoliBri - Visual Tests
|
|
2
2
|
|
|
3
|
-
Utilities for screenshot based regression testing of KoliBri themes.
|
|
4
|
-
|
|
5
3
|
[](https://www.npmjs.com/package/@public-ui/components)
|
|
6
4
|
[](https://github.com/public-ui/kolibri/blob/main/LICENSE)
|
|
7
5
|
[](https://www.npmjs.com/package/@public-ui/visual-tests)
|
|
@@ -61,5 +59,3 @@ Run the tests with `npm test`. The first time, this will create a new folder `sn
|
|
|
61
59
|
In the following runs, new screenshots will be compared to this reference.
|
|
62
60
|
|
|
63
61
|
To update the reference screenshots call `npm run test-update`.
|
|
64
|
-
|
|
65
|
-
For details on theming see the [default theme README](../../themes/default/README.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/visual-tests",
|
|
3
|
-
"version": "3.0.2-
|
|
3
|
+
"version": "3.0.2-ab502d4896d9763f93bb8cce1b07a1b2f8d04439.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"axe-playwright": "2.1.0",
|
|
30
30
|
"portfinder": "1.0.37",
|
|
31
31
|
"serve": "14.2.4",
|
|
32
|
-
"@public-ui/sample-react": "3.0.2-
|
|
32
|
+
"@public-ui/sample-react": "3.0.2-ab502d4896d9763f93bb8cce1b07a1b2f8d04439.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/eslint-parser": "7.27.5",
|
package/src/index.js
CHANGED
|
@@ -35,19 +35,12 @@ const packageJson = JSON.parse(packageJsonContent);
|
|
|
35
35
|
console.log(`
|
|
36
36
|
Building React Sample App (v${packageJson?.version ?? '#.#.#'}) …`);
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
child_process.spawnSync('pnpm', ['run', 'build', `--outDir="${buildPath}"`], {
|
|
39
39
|
cwd: workingDir,
|
|
40
40
|
encoding: 'utf-8',
|
|
41
41
|
shell: true,
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
if (buildResult.status !== 0) {
|
|
45
|
-
console.log('Build status:', buildResult.status);
|
|
46
|
-
console.log('Build stdout:', buildResult.stdout);
|
|
47
|
-
console.log('Build stderr:', buildResult.stderr);
|
|
48
|
-
console.log('Build error:', buildResult.error);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
44
|
console.log(`React Sample App build finished. Directory:`, buildPath);
|
|
52
45
|
|
|
53
46
|
void (async () => {
|