Skip to content

Commit

Permalink
add cypress split (#4924)
Browse files Browse the repository at this point in the history
  • Loading branch information
karola312 authored Jun 5, 2024
1 parent 430fc0b commit 4c027a9
Show file tree
Hide file tree
Showing 3 changed files with 3,642 additions and 633 deletions.
3 changes: 2 additions & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* eslint-disable no-console */
const { defineConfig } = require("cypress");
const fs = require("fs");
const cypressSplit = require("cypress-split");

module.exports = defineConfig({
projectId: "51ef7c",
Expand Down Expand Up @@ -32,7 +33,7 @@ module.exports = defineConfig({

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

cypressSplit(on, config);
on("after:spec", (spec, results) => {
if (results && results.video) {
return fs.unlink(results.video, function (err) {
Expand Down
Loading

0 comments on commit 4c027a9

Please sign in to comment.