Add "testmo" config (#3209)

* Add testmo config

* update base url

* Remove dupilcation
This commit is contained in:
M.Graczyk 2023-02-27 09:31:08 +00:00 committed by GitHub
parent 3055af4841
commit 9097d4076e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -4,6 +4,10 @@ const { defineConfig } = require("cypress");
const fs = require("fs"); const fs = require("fs");
module.exports = defineConfig({ module.exports = defineConfig({
reporter: "junit",
reporterOptions: {
mochaFile: "results/my-test-output-[hash].xml",
},
projectId: "51ef7c", projectId: "51ef7c",
chromeWebSecurity: false, chromeWebSecurity: false,
defaultCommandTimeout: 20000, defaultCommandTimeout: 20000,
@ -34,7 +38,7 @@ module.exports = defineConfig({
}); });
return config; return config;
}, },
baseUrl: "http://localhost:4173/", baseUrl: "http://localhost:4137/",
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}", specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
}, },
}); });

View file

@ -21,7 +21,7 @@
const graphql = require("graphql-request"); const graphql = require("graphql-request");
module.exports = async (on, config) => { module.exports = async (on, config) => {
// require("cypress-mochawesome-reporter/plugin")(on); - uncomment to run reports // require("cypress-mochawesome-reporter/plugin")(on);
require("dotenv").config(); require("dotenv").config();