@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 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.endsWith(".json")) {
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
  }