@testrelic/playwright-analytics 2.16.1-next.136 → 2.16.1-next.138
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/cli.cjs +5 -3
- package/dist/index.cjs +43 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +43 -43
- package/dist/index.js.map +1 -1
- package/dist/merge.cjs +1 -1
- package/dist/merge.cjs.map +1 -1
- package/dist/merge.js +1 -1
- package/dist/merge.js.map +1 -1
- package/dist/reporter-entry.cjs +30 -30
- package/dist/reporter-entry.cjs.map +1 -1
- package/dist/reporter-entry.js +28 -28
- package/dist/reporter-entry.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -704,10 +704,12 @@ async function mergeReports(files, options) {
|
|
|
704
704
|
for (const sr of streamingReports) {
|
|
705
705
|
const srcTestsDir = (0, import_node_path.join)(sr.dir, "tests");
|
|
706
706
|
if ((0, import_node_fs.existsSync)(srcTestsDir)) {
|
|
707
|
-
const testFiles = (0, import_node_fs.readdirSync)(srcTestsDir);
|
|
707
|
+
const testFiles = (0, import_node_fs.readdirSync)(srcTestsDir, { withFileTypes: true });
|
|
708
708
|
for (const f of testFiles) {
|
|
709
|
-
if (f.
|
|
710
|
-
(0, import_node_fs.cpSync)((0, import_node_path.join)(srcTestsDir, f), (0, import_node_path.join)(mergedTestsDir, f));
|
|
709
|
+
if (f.isDirectory()) {
|
|
710
|
+
(0, import_node_fs.cpSync)((0, import_node_path.join)(srcTestsDir, f.name), (0, import_node_path.join)(mergedTestsDir, f.name), { recursive: true });
|
|
711
|
+
} else if (f.name.endsWith(".json")) {
|
|
712
|
+
(0, import_node_fs.cpSync)((0, import_node_path.join)(srcTestsDir, f.name), (0, import_node_path.join)(mergedTestsDir, f.name));
|
|
711
713
|
}
|
|
712
714
|
}
|
|
713
715
|
}
|