Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed May 23, 2024
1 parent b4039a9 commit 51811ed
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 32 deletions.
12 changes: 5 additions & 7 deletions packages/core/src/cypress/ensureRdpPort.ts
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion packages/core/src/cypress/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default as ensureRdpPort } from "./ensureRdpPort"
export { default as ensureRdpPort } from './ensureRdpPort'
16 changes: 0 additions & 16 deletions wallets/metamask/cypress.config.ts

This file was deleted.

16 changes: 8 additions & 8 deletions wallets/metamask/test/wallet-setup/basic.setup.d.ts
Original file line number Diff line number Diff line change
@@ -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
hash: string
fn: import('@synthetixio/synpress-cache').WalletSetupFunction
walletPassword: string
}
export default _default
//# sourceMappingURL=basic.setup.d.ts.map

0 comments on commit 51811ed

Please sign in to comment.