Skip to content

Commit

Permalink
fix: renamed configureBeforeSynpress.ts to configureSynpress.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed Jul 14, 2024
1 parent a9c9436 commit ebc419d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/new-dawn/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { configureBeforeSynpress } from '@synthetixio/synpress/cypress'
import { configureSynpress } from '@synthetixio/synpress/cypress'
import { defineConfig } from 'cypress'

export default defineConfig({
Expand All @@ -9,7 +9,7 @@ export default defineConfig({
supportFile: 'test/cypress/support/e2e.{js,jsx,ts,tsx}',
testIsolation: false,
async setupNodeEvents(on, config) {
return configureBeforeSynpress(on, config)
return configureSynpress(on, config)
}
}
})
4 changes: 2 additions & 2 deletions wallets/ethereum-wallet-mock/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'cypress'
import { configureBeforeSynpress } from './src/cypress'
import { configureSynpress } from './src/cypress'

export default defineConfig({
chromeWebSecurity: false,
Expand All @@ -10,7 +10,7 @@ export default defineConfig({
fixturesFolder: 'src/cypress/fixtures',
testIsolation: false,
async setupNodeEvents(on, config) {
return configureBeforeSynpress(on, config)
return configureSynpress(on, config)
}
}
})
2 changes: 1 addition & 1 deletion wallets/ethereum-wallet-mock/src/cypress/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as configureBeforeSynpress } from './utils/configureBeforeSynpress'
export { default as configureSynpress } from './utils/configureSynpress'
export { default as EthereumWalletMock } from './EthereumWalletMock'
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { initEthereumWalletMock } from './initEthereumWalletMock'

let port: number

export default function configureBeforeSynpress(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) {
export default function configureSynpress(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) {
const browsers = config.browsers.filter((b) => b.name === 'chrome')
if (browsers.length === 0) {
throw new Error('No Chrome browser found in the configuration')
Expand Down
4 changes: 2 additions & 2 deletions wallets/metamask/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'cypress'
import configureBeforeSynpress from './src/cypress/configureBeforeSynpress'
import configureSynpress from './src/cypress/configureSynpress'

export default defineConfig({
chromeWebSecurity: false,
Expand All @@ -9,7 +9,7 @@ export default defineConfig({
supportFile: 'src/cypress/support/e2e.{js,jsx,ts,tsx}',
testIsolation: false,
async setupNodeEvents(on, config) {
return configureBeforeSynpress(on, config)
return configureSynpress(on, config)
}
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { initMetaMask } from './support/initMetaMask'

let port: number

export default function configureBeforeSynpress(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) {
export default function configureSynpress(on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) {
const browsers = config.browsers.filter((b) => b.name === 'chrome')
if (browsers.length === 0) {
throw new Error('No Chrome browser found in the configuration')
Expand Down

0 comments on commit ebc419d

Please sign in to comment.