diff --git a/packages/core/src/cypress/ensureRdpPort.ts b/packages/core/src/cypress/ensureRdpPort.ts index 512487701..bb7f0a6ba 100644 --- a/packages/core/src/cypress/ensureRdpPort.ts +++ b/packages/core/src/cypress/ensureRdpPort.ts @@ -1,15 +1,13 @@ export default function ensureRdpPort(args: string[]) { - const existing = args.find( - (arg) => arg.slice(0, 23) === "--remote-debugging-port" - ); + const existing = args.find((arg) => arg.slice(0, 23) === '--remote-debugging-port') if (existing) { - return Number(existing.split("=")[1]); + return Number(existing.split('=')[1]) } - const port = 40000 + Math.round(Math.random() * 25000); + const port = 40000 + Math.round(Math.random() * 25000) - args.push(`--remote-debugging-port=${port}`); + args.push(`--remote-debugging-port=${port}`) - return port; + return port } diff --git a/packages/core/src/cypress/index.ts b/packages/core/src/cypress/index.ts index f88de0108..3c8e8cf74 100644 --- a/packages/core/src/cypress/index.ts +++ b/packages/core/src/cypress/index.ts @@ -1 +1 @@ -export { default as ensureRdpPort } from "./ensureRdpPort" +export { default as ensureRdpPort } from './ensureRdpPort' diff --git a/wallets/metamask/cypress.config.ts b/wallets/metamask/cypress.config.ts deleted file mode 100644 index 22d8dd72f..000000000 --- a/wallets/metamask/cypress.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defineConfig } from "cypress"; -import { installSynpress } from './src/cypress'; - -export default defineConfig({ - chromeWebSecurity: false, - e2e: { - baseUrl: "http://localhost:9999", - supportFile: "src/cypress/support/e2e.{js,jsx,ts,tsx}", - specPattern: "test/**/*.cy.{js,jsx,ts,tsx}", - fixturesFolder: "src/cypress/fixtures", - testIsolation: false, - async setupNodeEvents(on, config) { - return installSynpress(on, config); - }, - }, -}); diff --git a/wallets/metamask/test/wallet-setup/basic.setup.d.ts b/wallets/metamask/test/wallet-setup/basic.setup.d.ts index 97d7a02cd..1bc70ea7c 100644 --- a/wallets/metamask/test/wallet-setup/basic.setup.d.ts +++ b/wallets/metamask/test/wallet-setup/basic.setup.d.ts @@ -1,9 +1,9 @@ -export declare const SEED_PHRASE = "test test test test test test test test test test test junk"; -export declare const PASSWORD = "Tester@1234"; +export declare const SEED_PHRASE = 'test test test test test test test test test test test junk' +export declare const PASSWORD = 'Tester@1234' declare const _default: { - hash: string; - fn: import("@synthetixio/synpress-cache").WalletSetupFunction; - walletPassword: string; -}; -export default _default; -//# sourceMappingURL=basic.setup.d.ts.map \ No newline at end of file + hash: string + fn: import('@synthetixio/synpress-cache').WalletSetupFunction + walletPassword: string +} +export default _default +//# sourceMappingURL=basic.setup.d.ts.map