@grafana/e2e: Avoid Cypress' issue with JSON file reporter (#25092)

https://github.com/cypress-io/cypress/issues/6406
This commit is contained in:
Steven Vachon
2020-05-25 19:28:35 -04:00
committed by GitHub
parent 68154cf98d
commit 2724f05d5e

View File

@@ -11,10 +11,13 @@ module.exports = async baseConfig => {
} = baseConfig;
if (CWD) {
// @todo: https://github.com/cypress-io/cypress/issues/6406
const jsonReporter = require.resolve('@mochajs/json-file-reporter');
const projectConfig = {
fixturesFolder: `${CWD}/cypress/fixtures`,
integrationFolder: `${CWD}/cypress/integration`,
reporter: '@mochajs/json-file-reporter', // putting this in cypress.json caused weird errors
reporter: jsonReporter,
reporterOptions: {
output: `${CWD}/cypress/report.json`,
},