@bigbinary/neeto-playwright-commons 1.10.16 → 1.11.1

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/index.cjs.js CHANGED
@@ -148823,11 +148823,6 @@ if (fs__namespace.existsSync("./e2e/config/.env.local")) {
148823
148823
  });
148824
148824
  main.expand(localEnv);
148825
148825
  }
148826
- const currentsConfig = {
148827
- ciBuildId: process.env.NEETO_CI_JOB_ID,
148828
- recordKey: "PVHNwxEOySsdAeTc",
148829
- tag: [process.env.TAG],
148830
- };
148831
148826
  const playdashStagingConfig = {
148832
148827
  apiKey: process.env.PLAYDASH_STAGING_API_KEY,
148833
148828
  ciBuildId: process.env.NEETO_CI_JOB_ID,
@@ -148841,28 +148836,26 @@ const playdashProductionConfig = {
148841
148836
  };
148842
148837
  const isCI = [ENVIRONMENT.staging, ENVIRONMENT.review].includes((_b = process.env.TEST_ENV) !== null && _b !== void 0 ? _b : ENVIRONMENT.development) && !!process.env.NEETO_CI_JOB_ID;
148843
148838
  const definePlaywrightConfig = (overrides) => {
148844
- const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, playdashStagingOverrides = {}, playdashProductionOverrides = {}, } = overrides;
148845
- const reporter = [
148846
- ["@currents/playwright", { ...currentsConfig, ...currentsOverrides }],
148847
- ];
148848
- if (!ramda.isEmpty(playdashStagingOverrides)) {
148849
- reporter.push([
148850
- "@bigbinary/neeto-playwright-reporter",
148851
- {
148852
- ...playdashStagingConfig,
148853
- ...playdashStagingOverrides,
148854
- },
148855
- ]);
148856
- }
148857
- else {
148858
- reporter.push([
148859
- "@bigbinary/neeto-playwright-reporter",
148860
- {
148861
- ...playdashProductionConfig,
148862
- ...playdashProductionOverrides,
148863
- },
148864
- ]);
148865
- }
148839
+ const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], playdashStagingOverrides = {}, playdashProductionOverrides = {}, } = overrides;
148840
+ const reporter = !ramda.isEmpty(playdashStagingOverrides)
148841
+ ? [
148842
+ [
148843
+ "@bigbinary/neeto-playwright-reporter",
148844
+ {
148845
+ ...playdashStagingConfig,
148846
+ ...playdashStagingOverrides,
148847
+ },
148848
+ ],
148849
+ ]
148850
+ : [
148851
+ [
148852
+ "@bigbinary/neeto-playwright-reporter",
148853
+ {
148854
+ ...playdashProductionConfig,
148855
+ ...playdashProductionOverrides,
148856
+ },
148857
+ ],
148858
+ ];
148866
148859
  return test$1.defineConfig({
148867
148860
  testDir: "./e2e/tests",
148868
148861
  fullyParallel: true,