@alfresco/aca-playwright-shared 7.3.0-20774048549 → 7.3.0-20818884241

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.
@@ -6,6 +6,7 @@ import { format, endOfMonth, subMonths, subDays } from 'date-fns';
6
6
  import StreamZip from 'node-stream-zip';
7
7
  import * as fs from 'fs';
8
8
  import fs__default from 'fs';
9
+ import { loadEnvFile } from 'node:process';
9
10
  import * as crypto$1 from 'crypto';
10
11
 
11
12
  /*!
@@ -4474,7 +4475,7 @@ async function createOutputFolders() {
4474
4475
  }
4475
4476
  async function removeOutputFolders() {
4476
4477
  if (fs__default.existsSync(paths.rootFolder)) {
4477
- fs__default.rmdirSync(paths.rootFolder, { recursive: true });
4478
+ fs__default.rmSync(paths.rootFolder, { recursive: true, force: true });
4478
4479
  }
4479
4480
  }
4480
4481
 
@@ -4556,7 +4557,12 @@ const getReporter = () => {
4556
4557
  * You should have received a copy of the GNU Lesser General Public License
4557
4558
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
4558
4559
  */
4559
- require('@alfresco/adf-cli/tooling').dotenvConfig();
4560
+ try {
4561
+ loadEnvFile();
4562
+ }
4563
+ catch (error) {
4564
+ // .env file is optional, continue without it
4565
+ }
4560
4566
  const { env } = process;
4561
4567
  function getBrowsersToUse() {
4562
4568
  const browserEnv = (env.PLAYWRIGHT_BROWSER || 'chromium').toLowerCase();