diff --git a/currents.config.js b/currents.config.js new file mode 100644 index 00000000..2fcc81fd --- /dev/null +++ b/currents.config.js @@ -0,0 +1,4 @@ +module.exports = { + projectId: "HX4KqP", + recordKey: "jIRQOVdnRn4skGjL", +}; diff --git a/cypress.config.e2e.ts b/cypress.config.e2e.ts index ead0c292..952abb08 100644 --- a/cypress.config.e2e.ts +++ b/cypress.config.e2e.ts @@ -1,4 +1,5 @@ import { defineConfig } from "cypress"; +import { cloudPlugin } from "cypress-cloud/plugin"; import { config } from "./cypress.config"; export default defineConfig({ diff --git a/cypress/plugins/index.ts b/cypress/plugins/index.ts index a0545d97..4cca1baa 100644 --- a/cypress/plugins/index.ts +++ b/cypress/plugins/index.ts @@ -12,11 +12,13 @@ // This function is called when a project is opened or re-opened (e.g. due to // the project's config changing) +import { cloudPlugin } from "cypress-cloud/plugin"; + export default ( on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions ) => { // `on` is used to hook into various events Cypress emits // `config` is the resolved Cypress config - return config; + return cloudPlugin(on, config); }; diff --git a/package.json b/package.json index 74ca3301..4a574e18 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "@vue/test-utils": "2.3.2", "@vue/tsconfig": "0.1.3", "cypress": "12.9.0", + "cypress-cloud": "1.7.3", "cypress-real-events": "1.7.6", "eslint": "8.38.0", "eslint-plugin-cypress": "2.13.2",