@public-ui/visual-tests 3.0.2-4633c75bfe6e8436d102c316ead90b0a2b4974ef.0 → 3.0.2-4d9d73e6b2febbdb23cf92ad1926eb0ccb66d12c.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/package.json +2 -2
- package/src/index.js +2 -1
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-4d9d73e6b2febbdb23cf92ad1926eb0ccb66d12c.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-4d9d73e6b2febbdb23cf92ad1926eb0ccb66d12c.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@babel/eslint-parser": "7.27.5",
|
package/src/index.js
CHANGED
|
@@ -6,8 +6,9 @@ import { readFile } from 'fs/promises';
|
|
|
6
6
|
import * as fs from 'fs';
|
|
7
7
|
import portfinder from 'portfinder';
|
|
8
8
|
import * as process from 'process';
|
|
9
|
+
import os from 'node:os';
|
|
9
10
|
|
|
10
|
-
const tempDir = process.env.RUNNER_TEMP || process.env.TMPDIR; // TODO: Check on Windows
|
|
11
|
+
const tempDir = process.env.RUNNER_TEMP || process.env.TMPDIR || os.tmpdir(); // TODO: Check on Windows
|
|
11
12
|
|
|
12
13
|
if (!process.env.THEME_MODULE) {
|
|
13
14
|
throw new Error('Environment variable THEME_MODULE not specified.');
|