Skip to content

Commit

Permalink
configured cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza-sharifpour committed Aug 21, 2022
1 parent cb69c45 commit 8302187
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
return {
...config,
// Only enable Chrome.
// Electron (the default) has issues injecting window.ethereum before pageload, so it is not viable.
browsers: config.browsers.filter(
({ name }) => name === 'chrome',
),
};
},
baseUrl: 'http://localhost:3000',
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
});

0 comments on commit 8302187

Please sign in to comment.