From 228eee2cfc76d22434275a84a24cbe7c3dca6257 Mon Sep 17 00:00:00 2001 From: Makito Date: Fri, 16 Aug 2024 14:40:32 +0800 Subject: [PATCH 1/2] fix: code block with incorrect language --- docs/guides/tooling/reporters.mdx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/guides/tooling/reporters.mdx b/docs/guides/tooling/reporters.mdx index 4c6d37437c..080e53f5e9 100644 --- a/docs/guides/tooling/reporters.mdx +++ b/docs/guides/tooling/reporters.mdx @@ -226,9 +226,7 @@ Then add the separate `reporter-config.json` file (defined in your configuration) to enable `spec` and `junit` reporters and direct the `junit` reporter to save separate XML files. -:::cypress-config-example - -```ts +```json { reporterEnabled: 'spec, mocha-junit-reporter', mochaJunitReporterReporterOptions: { @@ -237,8 +235,6 @@ reporter to save separate XML files. } ``` -::: - We recommend deleting all files from the `cypress/results` folder before running this command, since each run will output new XML files. For example, you can add the npm script commands below to your `package.json` then call `npm run report`. From afe58a1da4bdfcd814db89e8408c25e5a51797d3 Mon Sep 17 00:00:00 2001 From: Makito Date: Fri, 16 Aug 2024 15:55:24 +0800 Subject: [PATCH 2/2] fix: JSON format --- docs/guides/tooling/reporters.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/tooling/reporters.mdx b/docs/guides/tooling/reporters.mdx index 080e53f5e9..a5db417c02 100644 --- a/docs/guides/tooling/reporters.mdx +++ b/docs/guides/tooling/reporters.mdx @@ -228,9 +228,9 @@ reporter to save separate XML files. ```json { - reporterEnabled: 'spec, mocha-junit-reporter', - mochaJunitReporterReporterOptions: { - mochaFile: 'cypress/results/results-[hash].xml' + "reporterEnabled": "spec, mocha-junit-reporter", + "mochaJunitReporterReporterOptions": { + "mochaFile": "cypress/results/results-[hash].xml" } } ```