fresh-doctor-14925
12/09/2022, 11:44 AMthousands-kilobyte-24794
12/09/2022, 12:05 PMfresh-doctor-14925
12/09/2022, 12:11 PMnutritious-analyst-96582
12/09/2022, 12:12 PMgentle-branch-31208
12/09/2022, 1:51 PMgentle-branch-31208
12/09/2022, 1:51 PMminiature-dawn-64694
12/09/2022, 4:12 PMfull-helmet-93291
12/09/2022, 5:12 PMancient-rainbow-36271
12/09/2022, 5:15 PMGET
requests. When this endpoint is hit, cypress tests will start to run leveraging the power of the Cypress module API(https://docs.cypress.io/guides/guides/module-api). But there is one problem when this endpoint is hit over and over again, the tests will restart every time it is hit. I need to figure out how to know that the tests are still running so that I can block any incoming requests. Anyone with any ideas?
This is how my express server file looks like
const express = require("express");
const cypress = require("cypress");
const app = express();
const port = 3000;
app.get("/", (req, res) => {
res.send("Tests are running!");
cypress.run({
reporter: "junit",
browser: "electron",
config: {
video: true,
},
});
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});
stale-wire-41120
12/09/2022, 5:39 PMkind-photographer-81911
12/09/2022, 6:28 PMgray-kilobyte-89541
12/09/2022, 6:33 PMkind-photographer-81911
12/09/2022, 6:34 PMkind-photographer-81911
12/09/2022, 6:35 PMkind-photographer-81911
12/09/2022, 6:39 PMkind-photographer-81911
12/09/2022, 6:40 PMkind-photographer-81911
12/09/2022, 6:40 PMkind-photographer-81911
12/09/2022, 6:40 PMkind-photographer-81911
12/09/2022, 6:41 PMkind-photographer-81911
12/09/2022, 6:42 PMkind-photographer-81911
12/09/2022, 6:43 PMbitter-judge-96754
12/09/2022, 6:59 PMkind-photographer-81911
12/09/2022, 7:12 PM{operationName: "UpsertManager",…}
operationName
:
"UpsertManager"
query
:
"mutation UpsertManager($input: UpsertManagerInput!) {
kind-photographer-81911
12/09/2022, 7:13 PMstrong-scientist-84040
12/09/2022, 7:19 PMmysterious-belgium-25713
12/09/2022, 8:28 PMmysterious-belgium-25713
12/09/2022, 8:29 PMmysterious-belgium-25713
12/09/2022, 8:46 PMquick-scooter-78814
12/10/2022, 6:07 PMgray-kilobyte-89541
12/10/2022, 6:18 PM