@argos-ci/playwright 5.0.5 → 5.0.6
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/dist/reporter.js +2 -22
- package/package.json +4 -4
package/dist/reporter.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// src/reporter.ts
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
import { readConfig, upload } from "@argos-ci/core";
|
|
4
|
-
import {
|
|
5
|
-
import { copyFile, mkdir, readdir, writeFile } from "node:fs/promises";
|
|
6
|
-
import { tmpdir } from "node:os";
|
|
4
|
+
import { copyFile, readdir, writeFile } from "node:fs/promises";
|
|
7
5
|
import { dirname, join } from "node:path";
|
|
8
6
|
|
|
9
7
|
// src/attachment.ts
|
|
@@ -127,25 +125,7 @@ var KEY = "@argos-ci/playwright";
|
|
|
127
125
|
var debug = createDebug(KEY);
|
|
128
126
|
|
|
129
127
|
// src/reporter.ts
|
|
130
|
-
|
|
131
|
-
async function createDirectory(pathname) {
|
|
132
|
-
let promise = createDirectoryPromises.get(pathname);
|
|
133
|
-
if (promise) {
|
|
134
|
-
return promise;
|
|
135
|
-
}
|
|
136
|
-
promise = mkdir(pathname, { recursive: true }).then(() => {
|
|
137
|
-
});
|
|
138
|
-
createDirectoryPromises.set(pathname, promise);
|
|
139
|
-
return promise;
|
|
140
|
-
}
|
|
141
|
-
async function createTemporaryDirectory() {
|
|
142
|
-
debug("Creating temporary directory");
|
|
143
|
-
const osTmpDirectory = tmpdir();
|
|
144
|
-
const path = join(osTmpDirectory, "argos." + randomBytes(16).toString("hex"));
|
|
145
|
-
await createDirectory(path);
|
|
146
|
-
debug(`Temporary directory created: ${path}`);
|
|
147
|
-
return path;
|
|
148
|
-
}
|
|
128
|
+
import { createDirectory, createTemporaryDirectory } from "@argos-ci/util";
|
|
149
129
|
function checkIsDynamicBuildName(buildName) {
|
|
150
130
|
return Boolean(typeof buildName === "object" && buildName);
|
|
151
131
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/playwright",
|
|
3
3
|
"description": "Playwright SDK for visual testing with Argos.",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.6",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@argos-ci/browser": "4.1.2",
|
|
51
|
-
"@argos-ci/core": "3.2.
|
|
52
|
-
"@argos-ci/util": "2.3.
|
|
51
|
+
"@argos-ci/core": "3.2.1",
|
|
52
|
+
"@argos-ci/util": "2.3.2",
|
|
53
53
|
"chalk": "^5.4.1",
|
|
54
54
|
"debug": "^4.4.0"
|
|
55
55
|
},
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
|
|
68
68
|
"lint": "eslint ."
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "e1fae6c3e23967e703e761afce0ec037e07245b6"
|
|
71
71
|
}
|