Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Aug 30, 2024
2 parents 3714bed + af26308 commit bfb735d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 3 additions & 1 deletion examples/happo/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Happo + Currents + Cypress

An example showcasing seting up Happo with Currents.
An example showcasing setting up Happo with Currents.

```sh
export CURRENTS_RECORD_KEY=zzz
Expand All @@ -21,3 +21,5 @@ Connecting to cloud orchestration service...
```

Note the use of [cypress-on-fix]() in [`cypress.config.ts`](examples/happo/cypress.config.ts) due to Cypress [bug](https://github.com/cypress-io/cypress/issues/5240)

![currents-2024-08-30-14 04 10@2x](https://github.com/user-attachments/assets/35ed8b0b-3951-406b-a1bd-0b8e9382e355)
14 changes: 1 addition & 13 deletions examples/happo/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,8 @@ module.exports = defineConfig({
async setupNodeEvents(cyOn, config) {
const on = patchCypressOn(cyOn);
happoTask.register(on, config);
const result = await cloudPlugin(on, config);
return result;
return await cloudPlugin(on, config);
},
},

component: {
specPattern: ["pages/__tests__/*.spec.tsx"],
async setupNodeEvents(on, config) {
const result = await cloudPlugin(on, config);
return result;
},
devServer: {
framework: "next",
bundler: "webpack",
},
},
});

0 comments on commit bfb735d

Please sign in to comment.