Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteknowacki committed Aug 21, 2023
1 parent afeb8b5 commit 53b811a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ module.exports = defineConfig({
},
setupNodeEvents(cypressOn, config) {
const on = require("cypress-on-fix")(cypressOn);
const allSpecs = findCypressSpecs();
const chunk = getChunk(allSpecs, k, n);

config = require("./cypress/support/cypress-grep/plugin")(config);
config = require("./cypress/plugins/index.js")(on, config);
config = require("cypress-split")(on, config);
config.specPattern = chunk;

on("after:spec", (spec, results) => {
if (results && results.video) {
Expand All @@ -46,6 +49,5 @@ module.exports = defineConfig({
});
return config;
},
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
},
});

0 comments on commit 53b811a

Please sign in to comment.