Skip to content

Commit

Permalink
chore(appium): remove import sentences on config files
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Dec 7, 2023
1 parent f18ea10 commit 7c415ae
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 31 deletions.
12 changes: 6 additions & 6 deletions config/wdio.mac.app.conf.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require("module-alias/register");
import allureReporter from '@wdio/allure-reporter'
import { config as sharedConfig } from '@config/wdio.shared.conf';
import { homedir } from "os";
import { join } from "path";
import { MACOS_BUNDLE_ID, MACOS_DRIVER } from "@helpers/constants";
const fsp = require("fs").promises;
const allureReporter = require('@wdio/allure-reporter').default;
const sharedConfig = require('@config/wdio.shared.conf.ts').config;
const homedir = require("os").homedir;
const join = require("path").join;
const MACOS_BUNDLE_ID = require("@helpers/constants").MACOS_BUNDLE_ID;
const MACOS_DRIVER = require("@helpers/constants").MACOS_DRIVER;const fsp = require("fs").promises;
const { readFileSync, rmSync } = require("fs");

// @ts-expect-error
Expand Down
11 changes: 6 additions & 5 deletions config/wdio.mac.ci.conf.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
require("module-alias/register");
import allureReporter from '@wdio/allure-reporter'
import { config as sharedConfig } from '@config/wdio.shared.conf';
import { homedir } from "os";
import { join } from "path";
import { MACOS_BUNDLE_ID, MACOS_DRIVER } from "@helpers/constants";
const allureReporter = require('@wdio/allure-reporter').default;
const sharedConfig = require('@config/wdio.shared.conf.ts').config;
const homedir = require("os").homedir;
const join = require("path").join;
const MACOS_BUNDLE_ID = require("@helpers/constants").MACOS_BUNDLE_ID;
const MACOS_DRIVER = require("@helpers/constants").MACOS_DRIVER;
const fsp = require("fs").promises;
const { readFileSync, rmSync } = require("fs");

Expand Down
13 changes: 8 additions & 5 deletions config/wdio.mac.multiremote.conf.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
require("module-alias/register");
import allureReporter from '@wdio/allure-reporter'
import { config as sharedConfig } from '@config/wdio.shared.conf';
import { homedir } from "os";
import { join } from "path";
import { USER_A_INSTANCE, MACOS_DRIVER, MACOS_USER_A_BUNDLE_ID, MACOS_USER_B_BUNDLE_ID } from "@helpers/constants";
const allureReporter = require('@wdio/allure-reporter').default;
const sharedConfig = require('@config/wdio.shared.conf.ts').config;
const homedir = require("os").homedir;
const join = require("path").join;
const MACOS_USER_A_BUNDLE_ID = require("@helpers/constants").MACOS_USER_A_BUNDLE_ID;
const MACOS_USER_B_BUNDLE_ID = require("@helpers/constants").MACOS_USER_B_BUNDLE_ID;
const MACOS_DRIVER = require("@helpers/constants").MACOS_DRIVER;
const USER_A_INSTANCE = require("@helpers/constants").USER_A_INSTANCE;
const fsp = require("fs").promises;
const { readFileSync, rmSync } = require("fs");

Expand Down
8 changes: 4 additions & 4 deletions config/wdio.windows.app.conf.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require("module-alias/register");
import allureReporter from '@wdio/allure-reporter'
import { config as sharedConfig } from '@config/wdio.shared.conf';
import { homedir } from "os";
import { join } from "path";
const allureReporter = require('@wdio/allure-reporter').default;
const sharedConfig = require('@config/wdio.shared.conf.ts').config;
const homedir = require("os").homedir;
const join = require("path").join;
const fsp = require("fs").promises;
const { readFileSync, rmSync } = require("fs");

Expand Down
8 changes: 4 additions & 4 deletions config/wdio.windows.ci.conf.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require("module-alias/register");
import allureReporter from '@wdio/allure-reporter'
import { config as sharedConfig } from '@config/wdio.shared.conf';
import { homedir } from "os";
import { join } from "path";
const allureReporter = require('@wdio/allure-reporter').default;
const sharedConfig = require('@config/wdio.shared.conf.ts').config;
const homedir = require("os").homedir;
const join = require("path").join;
const fsp = require("fs").promises;
const { readFileSync, rmSync } = require("fs");

Expand Down
8 changes: 4 additions & 4 deletions config/wdio.windows.multiremote.conf.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require("module-alias/register");
import allureReporter from '@wdio/allure-reporter'
import { config as sharedConfig } from '@config/wdio.shared.conf';
import { join } from "path";
import { USER_A_INSTANCE } from "@helpers/constants";
const allureReporter = require('@wdio/allure-reporter').default;
const sharedConfig = require('@config/wdio.shared.conf.ts').config;
const join = require("path").join;
const USER_A_INSTANCE = require("@helpers/constants").USER_A_INSTANCE;
const fsp = require("fs").promises;
const userACacheFolder = join(process.cwd(), "./apps/ChatUserA/.user")
const userBCacheFolder = join(process.cwd(), "./apps/ChatUserB/.user")
Expand Down
6 changes: 3 additions & 3 deletions config/wdio.windows.onetime.conf.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require("module-alias/register");
import { config as sharedConfig } from '@config/wdio.shared.conf';
import { homedir } from "os";
import { join } from "path";
const sharedConfig = require('@config/wdio.shared.conf.ts').config;
const homedir = require("os").homedir;
const join = require("path").join;
const fsp = require("fs").promises;
const { rmSync } = require("fs");

Expand Down

0 comments on commit 7c415ae

Please sign in to comment.